Closed jasonmp85 closed 9 years ago
Strangely, while hash_array
fails to hash an array of a custom composite type (could not identify a hash function for type…), it can hash an array of an enumerated type. So perhaps we should look at it to see whether we're looking up hash functions in the best way possible.
@jasonmp85 So, this might be related to the patch applied to citus very recently (Composite Type bug fix (New version)).
So, I'll check this too, missed that while checking for #79 .
Oh, I think I misled. I said that hash_array
could find a function for composite types (#79), but I think I was confusing that with this (enumeration types). So we're on our own for composite types, but as I said above, it's kinda weird that we don't find the right function for an enumeration type.
This is similar to #79 except maybe more surprising that it doesn't Just Work™:
Kinda weird that enum types don't have a built-in hash function defined, given they're basically glorified integers.