mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
Added a test #2657
This commit is contained in:
parent
2465803888
commit
09d9ac671b
@ -0,0 +1,2 @@
|
||||
1
|
||||
1
|
14
dbms/tests/queries/0_stateless/00671_max_intersections.sql
Normal file
14
dbms/tests/queries/0_stateless/00671_max_intersections.sql
Normal file
@ -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;
|
Loading…
Reference in New Issue
Block a user