-
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
Trouble getting fancy with ARRAY_AGG (DISTINCT ARRAY_AGG) #6743
Comments
It probably panic in here https://github.com/apache/arrow-datafusion/blob/8be5a8ced87ccf4fb09d33f1f52c525027696e2b/datafusion/common/src/scalar.rs#L2317. I am confusing where the Same question in https://github.com/apache/arrow-datafusion/blob/8be5a8ced87ccf4fb09d33f1f52c525027696e2b/datafusion/common/src/scalar.rs#L2285 cc @alamb |
In the code you referenced this is basically the catch all meaning "if the type doesn't match one of the other branches" |
Thanks for the report @bellwether-softworks -- I added this to #2326 |
Sorry I make a stupid question.😂 |
Not at all -- we are all learning here together! |
Describe the bug
ARRAY_AGG
usage in SQL results in an error when used in conjunction withDISTINCT
parameter alongside another aggregate field.To Reproduce
ARRAY_AGG
andDISTINCT
parameter:Executing the above results in the following message:
Expected behavior
Desired output should be similar to the following:
Additional context
Omitting either the
COUNT
field, or theDISTINCT
clause inARRAY_AGG
, allows the query to complete successfully.The above was initially discovered in v17.0.0 and verified to still be presenting in v26.0.0.
The text was updated successfully, but these errors were encountered: