Skip to content

Conversation

@jycor
Copy link
Contributor

@jycor jycor commented Sep 6, 2025

Changes:

  • Fix HashLookup to find a compatible comparison type to convert left and right values to before hashing. We used to always pick the left type, which led to inconsistencies with MySQL
  • Implement Double value truncation, so incorrect double values are still partially converted to float64.

Fixes: dolthub/dolt#9799

Copy link
Contributor

@angelamayxie angelamayxie left a comment

Choose a reason for hiding this comment

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

I think instead of using prepareForNumericContext (convert.go lines 359 and 369), we could be using types.ConvertOrTruncate

Then we can get rid of prepareForNumericContext if it's not called anywhere else

@jycor jycor merged commit c8d2027 into main Sep 9, 2025
7 of 8 checks passed
@jycor jycor deleted the james/bools branch September 9, 2025 18:24
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.

String-Boolean comparison in JOIN queries returns incorrect results

3 participants