feat(duckdb): Add transpilation support for FLATTEN (ARRAY_FLATTEN)#6848
feat(duckdb): Add transpilation support for FLATTEN (ARRAY_FLATTEN)#6848georgesittas merged 1 commit intomainfrom
Conversation
SQLGlot Integration Test ResultsComparing:
By Dialect
Overallmain: 1694 total, 1462 passed (pass rate: 86.3%), sqlglot version: sqlglot:RD-1147617-array-flatten: 1694 total, 1462 passed (pass rate: 86.3%), sqlglot version: Difference: No change |
geooo109
left a comment
There was a problem hiding this comment.
This function exists in various dialects but I think we missing tests, we could add them in a separate PR. cc: @VaggelisD , @georgesittas
@geooo109 go for it. If we cover all dialects it may be worth renaming |
ARRAY_FLATTENfunction from Snowflake is not transpiling to DuckDB'sFLATTENfunction. SQLGlot currently parsesARRAY_FLATTENas an Anonymous function without mapping it to the internal Flatten expression type, resulting in failed transpilation to DuckDB.