Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: parse struct(...)[] type properly #4123

Merged
merged 1 commit into from
Sep 14, 2024

Conversation

georgesittas
Copy link
Collaborator

@georgesittas georgesittas commented Sep 14, 2024

@VaggelisD I think empty structs aren't allowed (context), for example STRUCT<...>[] is invalid BigQuery. The logic I linked was problematic because we'd consume [] and values would also be an empty list so we'd generate a CAST(STRUCT() AS STRUCT<...>) in DucKDB when trying to parse a type that is an array of structs.

This is needed to fix TobikoData/sqlmesh#3129.

@georgesittas georgesittas merged commit 21f5bcd into main Sep 14, 2024
6 checks passed
@georgesittas georgesittas deleted the jo/array_of_structs_type_fix branch September 14, 2024 20:57
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.

3 participants