Skip to content

Keep DuckDB GENERATE_ARRAY as a list for UNNEST#2060

Open
Chessing234 wants to merge 1 commit into
MIT-LCP:mainfrom
Chessing234:fix/1736-duckdb-generate-array-list
Open

Keep DuckDB GENERATE_ARRAY as a list for UNNEST#2060
Chessing234 wants to merge 1 commit into
MIT-LCP:mainfrom
Chessing234:fix/1736-duckdb-generate-array-list

Conversation

@Chessing234

Copy link
Copy Markdown
Contributor

Summary

  • DuckDB transpile emitted bare GENERATE_SERIES (not a list), breaking UNNEST in icustay_hourly (icustay_hourly.sql run error #1736)
  • Emit (SELECT list(g) FROM generate_series(...)) and regenerate duckdb concept

Test plan

  • pytest tests/test_transpile.py
  • DuckDB icustay_hourly runs without unnest type error

Fixes #1736

Made with Cursor

Bare GENERATE_SERIES broke icustay_hourly UNNEST (MIT-LCP#1736).

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

icustay_hourly.sql run error

1 participant