-
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
roachtest: incorrect aggregation planning in the vectorized engine #87619
Comments
looking into reducing this... |
Reduced test case:
|
Incorrect results occur in vectorized mode, but not in row mode. |
In the good plan, without random rules disabled, there is a
This is missing in the bad plan. Not sure why this might matter.
|
The fact that we have the same column in |
|
Adding the grouping column to the projections causes the row to be returned:
|
It's a problem in the vectorized engine similar to what we fixed in #87451, I'll take it. |
The table doesn't seem to show up in the operation tree:
Maybe the column is getting reduced to a constant somehow... and that makes the execution think a ColBatchScan is not needed? |
I think it would have been wrong even before #87451, right? We should be returning as many rows as there are groups in the non-scalar case, so the |
Can there be more than a single output row when there are no aggregate functions to compute? |
Yes, I think in that case it would be equivalent to a distinct + a project:
|
roachtest.unoptimized-query-oracle/disable-rules=half failed with artifacts on release-22.2 @ f8e04f32b84a9727c9e813d0096bde2de64d5675:
Parameters:
ROACHTEST_cloud=gce
,ROACHTEST_cpu=4
,ROACHTEST_ssd=0
Help
See: roachtest README
See: How To Investigate (internal)
Same failure on other branches
This test on roachdash | Improve this report!
Jira issue: CRDB-19448
The text was updated successfully, but these errors were encountered: