feat(snowflake)!: transpile NTH_VALUE from Snowflake to DuckDB#6882
feat(snowflake)!: transpile NTH_VALUE from Snowflake to DuckDB#6882georgesittas merged 2 commits intomainfrom
Conversation
SQLGlot Integration Test ResultsComparing:
By Dialect
Overallmain: 14496 total, 12363 passed (pass rate: 85.3%), sqlglot version: sqlglot:transpile_nth_value_from_snowflake_to_duckdb: 14496 total, 12279 passed (pass rate: 84.7%), sqlglot version: Difference: ⬇ regressed by |
|
@treysp @fivetran-felixhuang can we double-check these reported regressions in the test suite? Are they noise or? |
| @@ -1447,8 +1445,8 @@ | |||
| self.validate_all( | |||
| "SELECT a FROM test AS t QUALIFY ROW_NUMBER() OVER (PARTITION BY a ORDER BY Z) = 1", | |||
There was a problem hiding this comment.
currently NULLS LAST/FIRST transpilation is not properly handled in window function, will need to investigate
Line 2741 in ad2e9d3
georgesittas
left a comment
There was a problem hiding this comment.
I know this is still in draft mode, but wanted to raise awareness on the integration test suite regressions again and block the merge until we investigate them.
b4080c9 to
55f4798
Compare
55f4798 to
55cfc38
Compare
* support transpile NTH_VALUE from Snowflake to DuckDB * Update sqlglot/dialects/snowflake.py --------- Co-authored-by: Jo <46752250+georgesittas@users.noreply.github.com>
https://docs.snowflake.com/en/sql-reference/functions/nth_value
To transpile NTH_VALUE, we need to handle the following
sqlglot/sqlglot/generator.py
Line 2741 in ad2e9d3