mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 15:42:02 +00:00
H3 - tests for h3ResIsClassIII func
This commit is contained in:
parent
772f7c9322
commit
93e3fe9db1
@ -0,0 +1,4 @@
|
||||
0
|
||||
1
|
||||
0
|
||||
1
|
14
tests/queries/0_stateless/2021_h3_res_is_classIII.sql
Normal file
14
tests/queries/0_stateless/2021_h3_res_is_classIII.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#L57
|
||||
|
||||
INSERT INTO h3_indexes VALUES (geoToH3(0.0, 0.0, 0));
|
||||
INSERT INTO h3_indexes VALUES (geoToH3(10.0, 0.0, 1));
|
||||
INSERT INTO h3_indexes VALUES (geoToH3(0.0, 10.0, 2));
|
||||
INSERT INTO h3_indexes VALUES (geoToH3(10.0, 10.0, 3));
|
||||
|
||||
SELECT h3ResIsClassIII(h3_index) FROM h3_indexes ORDER BY h3_index;
|
||||
|
||||
DROP TABLE h3_indexes;
|
Loading…
Reference in New Issue
Block a user