-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
opt: GROUP BY panics on invalid ARRAY aggregations #30412
Comments
is this opt-specific? |
(in general I'd advise copy-pasting the full stack trace in an issue report) |
Yes, with the optimizer turned off, one gets the sane message
Here's a full stack:
|
Local Execution catches this error case well into planning. I modified the code to emit the stack trace where the error was emitted:
This isn't caught at typechecking. Since it is only caught by the planning apparatus, |
Assigned to @andy-kimball for triage. |
Rebecca, can you take a look? Looks like a probably SRF issue. |
Instead of panicking, we now throw an appropriate error. Fixes cockroachdb#30412 Release note (bug fix): Fixed a panic that occurred when a generator function such as unnest was used in the SELECT list in the presence of GROUP BY.
30405: roachtest: mark acceptance as stable r=petermattis a=tschottdorf all of its subtests are already stable, but in running a test locally I noticed that the top-level test was marked as passing as unstable. I'm not sure, but this might mean that the top-level test would actually not fail? Either way, better to mark it as stable explicitly. We should also spend some thought on how diverging notions of Stable in sub vs top level test are treated, not sure that this is well-defined. Release note: None 30446: opt: fix panic when srf used with GROUP BY r=rytaft a=rytaft Instead of panicking, we now throw an appropriate error. Fixes #30412 Release note (bug fix): Fixed a panic that occurred when a generator function such as unnest was used in the SELECT list in the presence of GROUP BY. 30450: roachtest: remove now-unnecessary hack r=petermattis a=tschottdorf Closes #27717. Release note: None 30451: storage: give TestReplicateRemovedNodeDisruptiveElection more time r=petermattis a=tschottdorf Perhaps: Fixes #27253. Release note: None 30452: storage: de-flake TestReplicaIDChangePending r=petermattis a=tschottdorf setReplicaID refreshes the proposal and was thus synchronously writing to the commandProposed chan. This channel could have filled up due to an earlier reproposal already, deadlocking the test. Fixes #28132. Release note: None 30455: testcluster: improve AddReplicas check r=petermattis a=tschottdorf AddReplicas was verifying that a replica had indeed been added, but there's no guarantee that the replicate queue wouldn't have removed it in the meantime. Attempt to work around this somewhat. The real solution is not to provide that guarantee, but some tests likely rely on it (and the failure is extremely rare, i.e. the new for loop basically never runs). Observed in #28368. Release note: None 30456: storage: unskip TestClosedTimestampCanServe for non-race r=petermattis a=tschottdorf Fixes #28607. Release note: None Co-authored-by: Tobias Schottdorf <tobias.schottdorf@gmail.com> Co-authored-by: Rebecca Taft <becca@cockroachlabs.com>
Instead of panicking, we now throw an appropriate error. Fixes cockroachdb#30412 Release note (bug fix): Fixed a panic that occurred when a generator function such as unnest was used in the SELECT list in the presence of GROUP BY.
Minimal reproduction:
select 0, unnest(array[0]) group by 1
panics with:
This should gracefully fail, not crash the server.
The text was updated successfully, but these errors were encountered: