From 1284a04a8b957c97e3158a65e2e9a724c3da9e8a Mon Sep 17 00:00:00 2001 From: bharatnc Date: Wed, 2 Jun 2021 09:46:02 -0700 Subject: [PATCH] h3ToGeo - add tests --- tests/queries/0_stateless/01889_h3_to_geo.reference | 4 ++++ tests/queries/0_stateless/01889_h3_to_geo.sql | 12 ++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 tests/queries/0_stateless/01889_h3_to_geo.reference create mode 100644 tests/queries/0_stateless/01889_h3_to_geo.sql diff --git a/tests/queries/0_stateless/01889_h3_to_geo.reference b/tests/queries/0_stateless/01889_h3_to_geo.reference new file mode 100644 index 00000000000..2821b897dd4 --- /dev/null +++ b/tests/queries/0_stateless/01889_h3_to_geo.reference @@ -0,0 +1,4 @@ +(37.79506616830252,55.71290243145668) +(37.79507532320379,55.712909934159995) +(37.79510864783612,55.71292405516229) +(37.79511780275313,55.712931557864124) diff --git a/tests/queries/0_stateless/01889_h3_to_geo.sql b/tests/queries/0_stateless/01889_h3_to_geo.sql new file mode 100644 index 00000000000..fc69cec0fb4 --- /dev/null +++ b/tests/queries/0_stateless/01889_h3_to_geo.sql @@ -0,0 +1,12 @@ +DROP TABLE IF EXISTS h3_indexes; + +CREATE TABLE h3_indexes (h3_index UInt64) ENGINE = Memory; + +INSERT INTO h3_indexes VALUES(644325524701193974); +INSERT INTO h3_indexes VALUES(644325524701193975); +INSERT INTO h3_indexes VALUES(644325524701193976); +INSERT INTO h3_indexes VALUES(644325524701193977); + +select h3ToGeo(h3_index) from h3_indexes; + +DROP TABLE h3_indexes; \ No newline at end of file