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(generator): Add NULL FILTER on ARRAY_AGG only for columns #4301

Merged
merged 1 commit into from
Oct 28, 2024

Conversation

VaggelisD
Copy link
Collaborator

Fixes #4300

#4033 was introduced to solve the transpilation of ARRAY_AGG from dialects that exclude NULL values (e.g. Spark) to those that don't (e.g. DuckDB) by adding a FILTER on it.

However, this (1) doesn't have to be added if the input is not a column and (2) even if it was kept as a no-op, DuckDB seems to hit on internal errors as is reported on the issue.

@tobymao tobymao merged commit a66e721 into main Oct 28, 2024
6 checks passed
@tobymao tobymao deleted the vaggelisd/arrayagg_non_column branch October 28, 2024 20:42
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.

Bug with array_agg distinct struct translation from Spark to DuckDB
2 participants