ClickHouse/tests/queries/0_stateless/02223_h3_test_const_columns.sql

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

35 lines
3.0 KiB
MySQL
Raw Normal View History

2022-02-19 02:45:15 +00:00
-- Tags: no-fasttest
2022-05-22 20:46:14 +00:00
select round(geoToH3(toFloat64(0),toFloat64(1),arrayJoin([1,2])), 2);
2022-02-19 00:35:07 +00:00
select h3ToParent(641573946153969375, arrayJoin([1,2]));
2022-05-22 20:46:14 +00:00
SELECT round(h3HexAreaM2(arrayJoin([1,2])), 2);
SELECT round(h3HexAreaKm2(arrayJoin([1,2])), 2);
SELECT round(h3CellAreaM2(arrayJoin([579205133326352383,589753847883235327,594082350283882495])), 2);
2022-02-19 16:41:21 +00:00
SELECT NULL, toFloat64('-1'), -2147483648, h3CellAreaM2(arrayJoin([9223372036854775807, 65535, NULL])); -- { serverError 117 }
2022-05-22 20:46:14 +00:00
SELECT round(h3CellAreaRads2(arrayJoin([579205133326352383,589753847883235327,594082350283882495])), 2);
2022-02-19 16:41:21 +00:00
SELECT NULL, toFloat64('-1'), -2147483648, h3CellAreaRads2(arrayJoin([9223372036854775807, 65535, NULL])); -- { serverError 117 }
2022-02-19 00:35:07 +00:00
SELECT h3GetResolution(arrayJoin([579205133326352383,589753847883235327,594082350283882495]));
2022-05-22 20:46:14 +00:00
SELECT round(h3EdgeAngle(arrayJoin([0,1,2])), 2);
SELECT round(h3EdgeLengthM(arrayJoin([0,1,2])), 2);
SELECT round(h3EdgeLengthKm(arrayJoin([0,1,2])), 2);
WITH h3ToGeo(arrayJoin([579205133326352383,589753847883235327,594082350283882495])) AS p SELECT round(p.1, 2), round(p.2, 2);
SELECT arrayMap(p -> (round(p.1, 2), round(p.2, 2)), h3ToGeoBoundary(arrayJoin([579205133326352383,589753847883235327,594082350283882495])));
2022-02-19 00:35:07 +00:00
SELECT h3kRing(arrayJoin([579205133326352383]), arrayJoin([toUInt16(1),toUInt16(2),toUInt16(3)]));
SELECT h3GetBaseCell(arrayJoin([579205133326352383,589753847883235327,594082350283882495]));
SELECT h3IndexesAreNeighbors(617420388351344639, arrayJoin([617420388352655359, 617420388351344639, 617420388352917503]));
SELECT h3ToChildren(599405990164561919, arrayJoin([6,5]));
SELECT h3ToParent(599405990164561919, arrayJoin([0,1]));
SELECT h3ToString(arrayJoin([579205133326352383,589753847883235327,594082350283882495]));
SELECT stringToH3(h3ToString(arrayJoin([579205133326352383,589753847883235327,594082350283882495])));
SELECT h3IsResClassIII(arrayJoin([579205133326352383,589753847883235327,594082350283882495]));
SELECT h3IsPentagon(arrayJoin([stringToH3('8f28308280f18f2'),stringToH3('821c07fffffffff'),stringToH3('0x8f28308280f18f2L'),stringToH3('0x821c07fffffffffL')]));
SELECT h3GetFaces(arrayJoin([stringToH3('8f28308280f18f2'),stringToH3('821c07fffffffff'),stringToH3('0x8f28308280f18f2L'),stringToH3('0x821c07fffffffffL')]));
SELECT h3ToCenterChild(577023702256844799, arrayJoin([1,2,3]));
2022-05-22 20:46:14 +00:00
SELECT round(h3ExactEdgeLengthM(arrayJoin([1298057039473278975,1370114633511206911,1442172227549134847,1514229821587062783])), 2);
SELECT round(h3ExactEdgeLengthKm(arrayJoin([1298057039473278975,1370114633511206911,1442172227549134847,1514229821587062783])), 2);
SELECT round(h3ExactEdgeLengthRads(arrayJoin([1298057039473278975,1370114633511206911,1442172227549134847,1514229821587062783])), 2);
2022-02-19 00:35:07 +00:00
SELECT h3NumHexagons(arrayJoin([1,2,3]));
2022-05-09 04:48:38 +00:00
SELECT h3Line(arrayJoin([stringToH3('85283473fffffff')]), arrayJoin([stringToH3('8528342bfffffff')]));
2022-05-10 05:40:34 +00:00
SELECT h3HexRing(arrayJoin([579205133326352383]), arrayJoin([toUInt16(1),toUInt16(2),toUInt16(3)])); -- { serverError 117 }
SELECT h3HexRing(arrayJoin([581276613233082367]), arrayJoin([toUInt16(0),toUInt16(1),toUInt16(2)]));