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

deduplicate (hash) intuple for and queries #1840

Merged
merged 4 commits into from
Jun 21, 2023
Merged

deduplicate (hash) intuple for and queries #1840

merged 4 commits into from
Jun 21, 2023

Conversation

jycor
Copy link
Contributor

@jycor jycor commented Jun 21, 2023

This PR was originally supposed to fix it: original fix: #1677, but AND statements weren't covered.

fix for: dolthub/dolt#6189

Copy link
Contributor

@max-hoffman max-hoffman left a comment

Choose a reason for hiding this comment

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

lgtm, one question about disjunctions and need to regen query plans in testgen_test.go but otherwise thanks for the quick fix

},
},
{
Query: `SELECT * FROM mytable WHERE i NOT in (1, 1, 1, 1, 1) and s != 'first row';`,
Copy link
Contributor

Choose a reason for hiding this comment

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

does sql.RemoveOverlappingRanges have expected behavior for disjunctions? ex: (i in (1) and s = 'first row') OR (i in (1,1,1))

@jycor jycor merged commit a3ce976 into main Jun 21, 2023
@jycor jycor deleted the james/hash branch July 21, 2023 17:27
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.

2 participants