ClickHouse/tests/queries/0_stateless/02509_h3_arguments.sql

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
554 B
MySQL
Raw Normal View History

2022-12-20 22:44:17 +00:00
-- Tags: no-fasttest
2022-12-19 05:38:26 +00:00
select h3ToParent(641573946153969375, 1);
select h3ToParent(641573946153969375, arrayJoin([1,2]));
DROP TABLE IF EXISTS data_table;
CREATE TABLE data_table (id UInt64, longitude Float64, latitude Float64) ENGINE=MergeTree ORDER BY id;
INSERT INTO data_table SELECT number, number, number FROM numbers(10);
SELECT geoToH3(longitude, latitude, toUInt8(8)) AS h3Index FROM data_table ORDER BY 1;
SELECT geoToH3(longitude, latitude, toUInt8(longitude - longitude + 8)) AS h3Index FROM data_table ORDER BY 1;
DROP TABLE data_table;