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 type ambiguity error out for IN and NOT IN. #38908

Merged
merged 1 commit into from
Jul 16, 2019

Conversation

rohany
Copy link
Contributor

@rohany rohany commented Jul 16, 2019

A previous PR introduced this error, this PR fixes it and adds a regression test.

Release note: None

@rohany rohany requested review from solongordon and a team July 16, 2019 19:51
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Member

@jordanlewis jordanlewis left a comment

Choose a reason for hiding this comment

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

:lgtm:

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

@rohany
Copy link
Contributor Author

rohany commented Jul 16, 2019

bors r=jordanlewis

craig bot pushed a commit that referenced this pull request Jul 16, 2019
38908: exec: Fix type ambiguity error out for IN and NOT IN. r=jordanlewis a=rohany

A previous PR introduced this error, this PR fixes it and adds a regression test.

Release note: None

38911: exec: fix LIKE handling for patterns like '%a%' r=solongordon a=solongordon

GetLikeOperator was choosing the wrong operator when both the first and
last characters of the pattern were wildcards. I fixed this logic and
improved the unit tests to cover GetLikeOperator rather than just the
underlying operators.

While I was here I also added better handling for the case where there
are no wildcards, i.e. exact string matching.

Fixes #38888

Release note: None

Co-authored-by: Rohan Yadav <rohany@alumni.cmu.edu>
Co-authored-by: Solon Gordon <solon@cockroachlabs.com>
@craig
Copy link
Contributor

craig bot commented Jul 16, 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.

3 participants