mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-29 11:02:08 +00:00
H3 - add tests for h3GetFaces
This commit is contained in:
parent
32baa1ddae
commit
eb118a09ab
4
tests/queries/0_stateless/2021_h3_get_faces.reference
Normal file
4
tests/queries/0_stateless/2021_h3_get_faces.reference
Normal file
@ -0,0 +1,4 @@
|
||||
5
|
||||
2
|
||||
1
|
||||
1
|
14
tests/queries/0_stateless/2021_h3_get_faces.sql
Normal file
14
tests/queries/0_stateless/2021_h3_get_faces.sql
Normal file
@ -0,0 +1,14 @@
|
||||
DROP TABLE IF EXISTS h3_indexes;
|
||||
|
||||
CREATE TABLE h3_indexes (h3_index UInt64) ENGINE = Memory;
|
||||
|
||||
-- test H3 indexes from: https://github.com/uber/h3-java/blob/master/src/test/java/com/uber/h3core/TestInspection.java#L86
|
||||
|
||||
INSERT INTO h3_indexes VALUES (stringToH3('0x85283473fffffffL'));
|
||||
INSERT INTO h3_indexes VALUES (stringToH3('85283473fffffff'));
|
||||
INSERT INTO h3_indexes VALUES (stringToH3('0x8167bffffffffffL'));
|
||||
INSERT INTO h3_indexes VALUES (stringToH3('0x804dfffffffffffL'));
|
||||
|
||||
SELECT h3GetFaces(h3_index) FROM h3_indexes ORDER BY h3_index;
|
||||
|
||||
DROP TABLE h3_indexes;
|
Loading…
Reference in New Issue
Block a user