clickhouse-java icon indicating copy to clipboard operation
clickhouse-java copied to clipboard

clickhouse api: cityHash64

Open songenjie opened this issue 4 years ago • 0 comments

how can get result of cityHash64(11)

SELECT cityHash64(11)

Query id: 5c297931-dd69-48cb-9f01-4d6253e19da5

┌──────cityHash64(11)─┐
│ 6561530814298065564 │
└─────────────────────┘

1 rows in set. Elapsed: 0.002 sec. 




SELECT cityHash64('11')

Query id: 18171503-24ee-44d2-9588-118419255434

┌────cityHash64('11')─┐
│ 6402675039859784247 │
└─────────────────────┘

cityhash64(string) ,i can call https://github.com/EwainCai/cityHash102-java/blob/main/CityHash.java#L13

but how can i get the corrent result cityhash64(uint8, uint16,uint32) ....

songenjie avatar Sep 17 '21 02:09 songenjie