-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
feat: support unnest
with additional columns
#9400
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you very much for this contribution @jonahgao -- this PR looks very nice to me (as usual)
4 2 | ||
5 2 | ||
6 3 | ||
12 NULL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💯 for testing nulls
let column = expr.display_name()?; | ||
|
||
let unnest_column = unnest_columns.pop().unwrap(); | ||
// Set preserve_nulls to false to ensure compatibility with DuckDB and PostgreSQL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Thank you for the review! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM Thanks, @jonahgao
Which issue does this PR close?
Closes #9349.
Rationale for this change
The
UnnestExec
already has this functionality.This PR passes the necessary parameters, i.e., the expressions in the select list that do not need unnesting, to it.
What changes are included in this PR?
Are these changes tested?
Yes
Are there any user-facing changes?
No