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

opt: fix casting bug in lookup joiner #38947

Merged
merged 1 commit into from
Jul 18, 2019

Conversation

ridwanmsharif
Copy link

@ridwanmsharif ridwanmsharif commented Jul 17, 2019

This change fixes a bug where the lookup joiner assumes
any constant value that it needs to create a projection
for (because there is a column quality with it) is of the
(ConstExpr) type. Regression test added.

Release note: None

@ridwanmsharif ridwanmsharif requested a review from a team as a code owner July 17, 2019 21:35
@cockroach-teamcity
Copy link
Member

This change is Reviewable

----

# Projection of constant columns work on boolean expressions.
# Regression test for a test in opt-private-tests
Copy link
Member

Choose a reason for hiding this comment

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

Please remove this line, we shouldn't have this kind of reference here. It's not important how we found the bug anyway.

This change fixes a bug where the lookup joiner assumes
any constant value that it needs to create a projection
for (because there is a column quality with it) is of the
(ConstExpr) type. Regression test added.

Release note: None
@ridwanmsharif ridwanmsharif force-pushed the fix-lookup-joiner-bug branch from 10a9221 to fe8daf6 Compare July 17, 2019 23:26
Copy link
Author

@ridwanmsharif ridwanmsharif left a comment

Choose a reason for hiding this comment

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

bors r+

Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @RaduBerinde)


pkg/sql/opt/xform/testdata/rules/join, line 1463 at r1 (raw file):

Previously, RaduBerinde wrote…

Please remove this line, we shouldn't have this kind of reference here. It's not important how we found the bug anyway.

Done.

craig bot pushed a commit that referenced this pull request Jul 18, 2019
38947: opt: fix casting bug in lookup joiner r=ridwanmsharif a=ridwanmsharif

This change fixes a bug where the lookup joiner assumes
any constant value that it needs to create a projection
for (because there is a column quality with it) is of the
(ConstExpr) type. Regression test added. 

Release note: None

Co-authored-by: Ridwan Sharif <[email protected]>
@craig
Copy link
Contributor

craig bot commented Jul 18, 2019

Build succeeded

@craig craig bot merged commit fe8daf6 into cockroachdb:master Jul 18, 2019
@ridwanmsharif ridwanmsharif deleted the fix-lookup-joiner-bug branch July 18, 2019 01:39
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