ClickHouse/tests/queries/0_stateless/03196_max_intersections_arena_crash.sql
2024-06-25 22:00:54 +02:00

6 lines
360 B
SQL

DROP TABLE IF EXISTS my_events;
CREATE TABLE my_events (start UInt32, end UInt32) Engine = MergeTree ORDER BY tuple()
AS Select * FROM VALUES ('start UInt32, end UInt32', (1, 3), (1, 6), (2, 5), (3, 7));
SELECT start, end, maxIntersections(start, end) OVER () FROM my_events;
SELECT start, end, maxIntersectionsPosition(start, end) OVER () FROM my_events;