Add ability to calculate hashes from values of UUID type #5184
Labels
easy task
Good for first contributors
feature
st-accepted
The issue is in our backlog, ready to take
It would be nice to have an ability to quickly calculate hash function from values of UUID type without prior conversion to string.
Right now it is possible to do
cityHash64(toString(uuidValue))
, but it is inefficient because of the need to make conversions to strings.Use case
To make use of UUIDs in sampling expressions or sharding keys more efficient.
Describe the solution you'd like
I would like to have ability to calculate
cityHash64
orintHash64
from values that have UUID type.Describe alternatives you've considered
An alternative would be to make it possible to use values of UUID type as sampling expressions and sharding keys as is, without the need to produce integer hashes from them.
The text was updated successfully, but these errors were encountered: