diff --git a/dbms/tests/queries/0_stateless/00671_max_intersections.reference b/dbms/tests/queries/0_stateless/00671_max_intersections.reference new file mode 100644 index 00000000000..6ed281c757a --- /dev/null +++ b/dbms/tests/queries/0_stateless/00671_max_intersections.reference @@ -0,0 +1,2 @@ +1 +1 diff --git a/dbms/tests/queries/0_stateless/00671_max_intersections.sql b/dbms/tests/queries/0_stateless/00671_max_intersections.sql new file mode 100644 index 00000000000..486a8e023a2 --- /dev/null +++ b/dbms/tests/queries/0_stateless/00671_max_intersections.sql @@ -0,0 +1,14 @@ +DROP TABLE IF EXISTS test.test1; +DROP TABLE IF EXISTS test.test2; + +CREATE TABLE test.test1(start Integer, end Integer) engine = Memory; +CREATE TABLE test.test2(start Integer, end Integer) engine = Memory; + +INSERT INTO test.test1(start,end) VALUES (1,3),(3,5); +INSERT INTO test.test2(start,end) VALUES (3,5),(1,3); + +SELECT maxIntersections(start,end) from test.test1; +SELECT maxIntersections(start,end) from test.test2; + +DROP TABLE test.test1; +DROP TABLE test.test2;