Skip to content

Check if key is convertible before memoizing lookup join#3343

Merged
angelamayxie merged 5 commits intomainfrom
angela/lookup_join_hint
Dec 15, 2025
Merged

Check if key is convertible before memoizing lookup join#3343
angelamayxie merged 5 commits intomainfrom
angela/lookup_join_hint

Conversation

@angelamayxie
Copy link
Copy Markdown
Contributor

@angelamayxie angelamayxie commented Dec 15, 2025

fixes dolthub/dolt#10186

Numeric types cannot be used as keys for String type columns due to the way the types convert. For example, a String with a value "i" is equivalent to 0; however, 0 converts to "0" as a String and therefore cannot be used as key to index to "i".

Doltgres companion PR dolthub/doltgresql#2121

Copy link
Copy Markdown
Member

@zachmu zachmu left a comment

Choose a reason for hiding this comment

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

LGTM

@angelamayxie angelamayxie merged commit b361382 into main Dec 15, 2025
7 of 8 checks passed
@angelamayxie angelamayxie deleted the angela/lookup_join_hint branch December 15, 2025 23:55
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.

Unexpected Result Under Hint

2 participants