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

fix collations with recursive hash for HashInTuple expressions #2651

Merged
merged 4 commits into from
Sep 4, 2024

Conversation

jycor
Copy link
Contributor

@jycor jycor commented Sep 4, 2024

When hashing tuples, we don't take into account the collation of the individual elements, which results in incorrect comparisons for case insensitive collations.

The fix here was to recursively hash each individual element in a tuple, and hash the slice of hashes.

fixes dolthub/dolt#8316

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, this one operator has been giving us issues for like 3 years now

@jycor jycor merged commit 4265f4f into main Sep 4, 2024
8 checks passed
@jycor jycor deleted the james/hash branch September 4, 2024 21:04
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.

Sqlalchemy can't reflect schema with foreign key
2 participants