Snowflake: support IGNORE/RESPECT NULLS inside function argument list (#1263)

This commit is contained in:
Joey Hain 2024-05-16 11:16:43 -07:00 committed by GitHub
parent 5ed13b5af3
commit 54184460b5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 15 additions and 0 deletions

View file

@ -1576,3 +1576,12 @@ fn test_select_wildcard_with_ilike_replace() {
"sql parser error: Expected end of statement, found: EXCLUDE"
);
}
#[test]
fn first_value_ignore_nulls() {
snowflake().verified_only_select(concat!(
"SELECT FIRST_VALUE(column2 IGNORE NULLS) ",
"OVER (PARTITION BY column1 ORDER BY column2) ",
"FROM some_table"
));
}