mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 08:32:02 +00:00
e4988110ec
Function signatures: * geohashEncode(float lon, float lat, int precision) => string * geohashDecode(string encoded) => (float llon, float lat) With test cases and documentation;
228 lines
2.4 KiB
Plaintext
228 lines
2.4 KiB
Plaintext
invalid values:
|
|
zzzzzzzzzzzz
|
|
000000000000
|
|
1
|
|
constant values:
|
|
ezs42d000000
|
|
-5.60303 42.60498
|
|
default precision:
|
|
ezs42d000000
|
|
mixing const and non-const-columns:
|
|
ezs42d000000
|
|
from table (with const precision):
|
|
1 6 Ok
|
|
1 6 Ok
|
|
1 6 Ok
|
|
1 7 Ok
|
|
1 7 Ok
|
|
1 k Ok
|
|
1 k Ok
|
|
1 k Ok
|
|
1 7 Ok
|
|
1 7 Ok
|
|
1 k Ok
|
|
1 k Ok
|
|
1 k Ok
|
|
1 e Ok
|
|
1 e Ok
|
|
1 s Ok
|
|
1 s Ok
|
|
1 s Ok
|
|
1 e Ok
|
|
1 e Ok
|
|
1 s Ok
|
|
1 s Ok
|
|
1 s Ok
|
|
1 e Ok
|
|
1 e Ok
|
|
1 s Ok
|
|
1 s Ok
|
|
1 s Ok
|
|
1 w Ok
|
|
1 g Ok
|
|
1 u Ok
|
|
2 6g Ok
|
|
2 6g Ok
|
|
2 6g Ok
|
|
2 7z Ok
|
|
2 7z Ok
|
|
2 kp Ok
|
|
2 kp Ok
|
|
2 kp Ok
|
|
2 7z Ok
|
|
2 7z Ok
|
|
2 kp Ok
|
|
2 kp Ok
|
|
2 kp Ok
|
|
2 eb Ok
|
|
2 eb Ok
|
|
2 s0 Ok
|
|
2 s0 Ok
|
|
2 s0 Ok
|
|
2 eb Ok
|
|
2 eb Ok
|
|
2 s0 Ok
|
|
2 s0 Ok
|
|
2 s0 Ok
|
|
2 eb Ok
|
|
2 eb Ok
|
|
2 s0 Ok
|
|
2 s0 Ok
|
|
2 s0 Ok
|
|
2 w1 Ok
|
|
2 gc Ok
|
|
2 u9 Ok
|
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