Skip to content
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

colexec: fix usage of incorrect type schema for external hash agg #63446

Merged
merged 1 commit into from
Apr 11, 2021

Conversation

yuzefovich
Copy link
Member

We recently merged a change to the external hash aggregator to maintain
ordering. This was done by planning an explicit sort after aggregation.
However, a bug was introduced in which we were using the incorrect type
schema for sort planning: namely, we used the "result types" for the
aggregator stage (after a projection is applied), but we should have
used the "output types" (the schema of what the aggregator outputs). Now
this is fixed.

Fixes: #63430.
Fixes: #63431.
Fixes: #63432.
Fixes: #63433.
Fixes: #63434.
Fixes: #63435.
Fixes: #63436.
Fixes: #63437.
Fixes: #63438.
Fixes: #63439.
Fixes: #63440.
Fixes: #63441.
Fixes: #63442.
Fixes: #63443.

Release note: None

@yuzefovich yuzefovich requested review from rytaft and a team April 10, 2021 20:30
@cockroach-teamcity
Copy link
Member

This change is Reviewable

We recently merged a change to the external hash aggregator to maintain
ordering. This was done by planning an explicit sort after aggregation.
However, a bug was introduced in which we were using the incorrect type
schema for sort planning: namely, we used the "result types" for the
aggregator stage (after a projection is applied), but we should have
used the "output types" (the schema of what the aggregator outputs). Now
this is fixed.

Release note: None
Copy link
Collaborator

@rytaft rytaft left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewed 2 of 2 files at r1.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @yuzefovich)

@yuzefovich
Copy link
Member Author

TFTR!

bors r+

@craig
Copy link
Contributor

craig bot commented Apr 11, 2021

Build succeeded:

@craig craig bot merged commit 3e54362 into cockroachdb:master Apr 11, 2021
@yuzefovich yuzefovich deleted the fix-hash-agg branch April 11, 2021 19:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment