Snowflake: support position with normal function call syntax (#1341)

Co-authored-by: Ifeanyi Ubah <ify1992@yahoo.com>
This commit is contained in:
Joey Hain 2024-07-29 14:17:11 -07:00 committed by GitHub
parent 7fdb2ec5d1
commit c3ba2f33c6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 39 additions and 27 deletions

View file

@ -2256,3 +2256,9 @@ fn asof_joins() {
"ORDER BY s.observed",
));
}
#[test]
fn test_parse_position() {
snowflake().verified_query("SELECT position('an', 'banana', 1)");
snowflake().verified_query("SELECT n, h, POSITION(n IN h) FROM pos");
}