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

exec: fix bug in ordered aggregate planning #38512

Merged
merged 1 commit into from
Jun 27, 2019

Conversation

jordanlewis
Copy link
Member

Previously, there was a bug that caused ordered aggregations to not be
planned correctly when some columns weren't present in the grouping
columns.

Fixes #37332.

Release note: None

@jordanlewis jordanlewis requested review from yuzefovich and a team June 27, 2019 16:42
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Member

@yuzefovich yuzefovich left a comment

Choose a reason for hiding this comment

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

Thanks! :lgtm:

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


pkg/sql/exec/aggregator.go, line 130 at r1 (raw file):

	}

	groupTypes := extractGroupTypes(groupCols, colTypes)

I think extractGroupTypes is unused now, so it should be removed.

Previously, there was a bug that caused ordered aggregations to not be
planned correctly when some columns weren't present in the grouping
columns.

Release note: None
@jordanlewis
Copy link
Member Author

TFTRs!

bors r+

craig bot pushed a commit that referenced this pull request Jun 27, 2019
38512: exec: fix bug in ordered aggregate planning r=jordanlewis a=jordanlewis

Previously, there was a bug that caused ordered aggregations to not be
planned correctly when some columns weren't present in the grouping
columns.

Fixes #37332.

Release note: None

Co-authored-by: Jordan Lewis <jordanthelewis@gmail.com>
@craig
Copy link
Contributor

craig bot commented Jun 27, 2019

Build succeeded

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

exec: crash in ordered aggregator
4 participants