-
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
[Regression] Query using ARRAY_AGG(DISTINCT) causes panic #10486
Comments
I added the assertion because I don't know if there is any case that has len > 1. It would be nice if you had a simpler example to add to the test! |
@jayzhan211 I appreciate your concern regarding the complex example case; I attempted to create a simpler contrived example, but was unable to trigger the panic doing so. I don't currently know the exact conditions that are triggering the problem. |
That's fine. I think that is the reason why I can't easily find the test case that trigger this panic, probably only the complex aggregate query that has multiple states meet the requirement. I think we can add your example as a test case. And, find out whether we should fix the multi states issue in |
I was playing around with this issue and found a more minimal example:
It is interesting though, using SUM(1) instead of SUM(DISTINCT 1) did not panic |
Added to #10517 |
Describe the bug
Beginning in v37.0.0, a previously-working query is found to result in a panic:
To Reproduce
The following query is known to trigger the panic, alongside the accompanying parquet payloads contained in the attached .zip file.
failing-query-assets.zip
Expected behavior
No response
Additional context
I've confirmed that the issue does not present in v36.0.0 or earlier, and is present in v37.0.0 up to v38.0.0. The issue doesn't present when omitting
ARRAY_AGG(DISTINCT ...)
from my queries.The text was updated successfully, but these errors were encountered: