Skip to content

opt: fix bug in stats code for inverted join#50713

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
rytaft:fix-inverted-join-bug
Jun 27, 2020
Merged

opt: fix bug in stats code for inverted join#50713
craig[bot] merged 1 commit intocockroachdb:masterfrom
rytaft:fix-inverted-join-bug

Conversation

@rytaft
Copy link
Copy Markdown
Collaborator

@rytaft rytaft commented Jun 26, 2020

This commit fixes an omission in the statisticsBuilder code for inverted
joins that caused some queries involving joins between two geospatial
columns to fail with an internal error. In particular, the function
colStatFromJoinRight needed a special case for inverted join to get
a column statistic from the index side of the join, similar to the
special case for lookup join.

There is no release note for this PR since it fixes a bug that was introduced
two days ago.

Release note: None

This commit fixes an omission in the statisticsBuilder code for inverted
joins that caused some queries involving joins between two geospatial
columns to fail with an internal error. In particular, the function
colStatFromJoinRight needed a special case for inverted join to get
a column statistic from the index side of the join, similar to the
special case for lookup join.

There is no release note for this PR since it fixes a bug that was introduced
two days ago.

Release note: None
@rytaft rytaft requested review from a team and sumeerbhola June 26, 2020 20:19
@rytaft rytaft requested a review from a team as a code owner June 26, 2020 20:19
@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

Copy link
Copy Markdown
Collaborator

@sumeerbhola sumeerbhola left a comment

Choose a reason for hiding this comment

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

thanks for the quick fix
:lgtm:

Reviewed 2 of 2 files at r1.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained

@rytaft
Copy link
Copy Markdown
Collaborator Author

rytaft commented Jun 26, 2020

TFTR!

bors r+

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Jun 26, 2020

Build failed

@rytaft
Copy link
Copy Markdown
Collaborator Author

rytaft commented Jun 26, 2020

bors r+

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Jun 27, 2020

Build failed

@rytaft
Copy link
Copy Markdown
Collaborator Author

rytaft commented Jun 27, 2020

bors r+

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Jun 27, 2020

Build succeeded

@craig craig bot merged commit 2b3e29a into cockroachdb:master Jun 27, 2020
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.

3 participants