ClickHouse/tests/queries/0_stateless/01408_range_overflow.sql

14 lines
632 B
MySQL
Raw Normal View History

2020-08-15 21:14:15 +00:00
-- executeGeneric()
SELECT range(1025, 1048576 + 9223372036854775807, 9223372036854775807);
SELECT range(1025, 1048576 + (9223372036854775807 AS i), i);
2023-03-03 14:13:07 +00:00
SELECT range(1025, 18446744073709551615, 1); -- { serverError 69 }
2020-08-15 21:14:15 +00:00
-- executeConstStep()
SELECT range(number, 1048576 + 9223372036854775807, 9223372036854775807) FROM system.numbers LIMIT 1 OFFSET 1025;
2020-08-15 21:14:15 +00:00
-- executeConstStartStep()
SELECT range(1025, number + 9223372036854775807, 9223372036854775807) FROM system.numbers LIMIT 1 OFFSET 1048576;
2020-08-15 21:14:15 +00:00
-- executeConstStart()
SELECT range(1025, 1048576 + 9223372036854775807, number + 9223372036854775807) FROM system.numbers LIMIT 1;