From 750b73084a5adf54a30a7f0ed07cba879c0ecc2d Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Tue, 21 Apr 2020 02:56:57 +0300 Subject: [PATCH] Added a test from Alexey Ilyukhov @livace --- .../queries/0_stateless/01255_geo_types_livace.reference | 2 ++ tests/queries/0_stateless/01255_geo_types_livace.sql | 9 +++++++++ 2 files changed, 11 insertions(+) create mode 100644 tests/queries/0_stateless/01255_geo_types_livace.reference create mode 100644 tests/queries/0_stateless/01255_geo_types_livace.sql diff --git a/tests/queries/0_stateless/01255_geo_types_livace.reference b/tests/queries/0_stateless/01255_geo_types_livace.reference new file mode 100644 index 00000000000..3982d6fb18a --- /dev/null +++ b/tests/queries/0_stateless/01255_geo_types_livace.reference @@ -0,0 +1,2 @@ +[(123,456),(789,234)] [(567,890)] +[] [(11,22),(33,44),(55,66)] diff --git a/tests/queries/0_stateless/01255_geo_types_livace.sql b/tests/queries/0_stateless/01255_geo_types_livace.sql new file mode 100644 index 00000000000..0838f0fa219 --- /dev/null +++ b/tests/queries/0_stateless/01255_geo_types_livace.sql @@ -0,0 +1,9 @@ +DROP TABLE IF EXISTS tutorial; +create table tutorial ( inner_poly Array(Tuple(Int32, Int32)), outer_poly Array(Tuple(Int32, Int32)) ) engine = Log(); + +SELECT * FROM tutorial; + +INSERT INTO tutorial VALUES ([(123, 456), (789, 234)], [(567, 890)]), ([], [(11, 22), (33, 44), (55, 66)]); +SELECT * FROM tutorial; + +DROP TABLE tutorial;