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

Enable use of slices in tuples for HashLookups #2004

Merged
merged 2 commits into from Sep 13, 2023

Conversation

macneale4
Copy link
Contributor

Currently FusionAuth crashes Dolt with the following error:

panic: runtime error: hash of unhashable type []uint8

All FusionAuth IDs are binary(16), and join on those values in a HashLookup was resulting in using two []uint8 being used as a key to a hashtable. Nested arrays in tuples were tripping on an optimization made for short arrays. We've verified that optimization doesn't actually made a difference, so this change simplifies the code and makes it more generic.

@macneale4 macneale4 marked this pull request as ready for review September 13, 2023 20:45
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

@macneale4 macneale4 merged commit 3568fec into main Sep 13, 2023
7 checks passed
@macneale4 macneale4 deleted the macneale4/slice_hash_fix branch September 13, 2023 22:45
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.

None yet

2 participants