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

chore: add todos on switching to newer duckdb list_concat() syntax #10447

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

NickCrews
Copy link
Contributor

I want these changes to eventually make it in

@github-actions github-actions bot added the sql Backends that generate SQL label Nov 6, 2024
@cpcloud
Copy link
Member

cpcloud commented Nov 6, 2024

We can't do this because list_concat will always follow the postgres array_cat behavior, which is NOT to propagate NULLs.

@cpcloud cpcloud closed this Nov 6, 2024
@cpcloud
Copy link
Member

cpcloud commented Nov 6, 2024

Hm, sorry for the fast close. I think we can keep the TODO about using || (the double-pipe operator).

@cpcloud cpcloud reopened this Nov 6, 2024
@@ -349,7 +349,14 @@ def visit_UnwrapJSONBoolean(self, op, *, arg):
)

def visit_ArrayConcat(self, op, *, arg):
# TODO: duckdb 1.1.3 was the first release to support list_concat(a,b,c,d,...)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can't do this because list_concat will always follow the postgres array_cat behavior, which is NOT to propagate NULLs.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, yes that's correct. I will fix these up

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sql Backends that generate SQL
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants