-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Support array literal with scalar function #8884
Support array literal with scalar function #8884
Conversation
Signed-off-by: jayzhan211 <jayzhan211@gmail.com>
@@ -459,7 +459,7 @@ AS | |||
query error | |||
select [1, true, null] | |||
|
|||
query error DataFusion error: This feature is not implemented: ScalarFunctions without MakeArray are not supported: now() |
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.
Can we add more to covert Struct
?
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.
looks good to me, thank you @jayzhan211
Now that I am looking at this code, I wonder why array literals can't support functions 🤔 I bet they could given they are just arguments passed to a function now
True |
Signed-off-by: jayzhan211 <jayzhan211@gmail.com>
} | ||
} | ||
} | ||
let values = elements |
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.
I love it -- less code and more functionality ❤️ !
Forgot to convert back from draft, this is ready to merge! |
Which issue does this PR close?
Closes #8873
Closes #8867
Rationale for this change
What changes are included in this PR?
Are these changes tested?
Are there any user-facing changes?