ClickHouse/tests/queries/0_stateless/01391_limit_overflow.sql
2020-07-12 08:18:01 +03:00

13 lines
282 B
SQL

SELECT number FROM numbers(10) ORDER BY number ASC LIMIT 2, 9223372036854775807 WITH TIES;
SELECT '---';
CREATE TEMPORARY TABLE a (a UInt64);
INSERT INTO TABLE a SELECT number FROM system.numbers LIMIT 10;
SELECT a
FROM a
GROUP BY a
ORDER BY a ASC
LIMIT 5, 18446744073709551615;