mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-12 02:23:14 +00:00
f4a4d33c2d
https://clickhouse-test-reports.s3.yandex.net/19528/1c364b6ee3a44487529954cf2792e615f7de0f82/fuzzer_ubsan/report.html#fail1
35 lines
1.5 KiB
Plaintext
35 lines
1.5 KiB
Plaintext
-- { echo }
|
|
-- tests with INT64_MIN (via overflow)
|
|
SELECT addMinutes(toDateTime('2021-01-01 00:00:00', 'GMT'), 9223372036854775808);
|
|
2021-01-01 00:00:00
|
|
SELECT addHours(toDateTime('2021-01-01 00:00:00', 'GMT'), 9223372036854775808);
|
|
2021-01-01 00:00:00
|
|
SELECT addWeeks(toDateTime('2021-01-01 00:00:00', 'GMT'), 9223372036854775808);
|
|
2021-01-01 00:00:00
|
|
SELECT addDays(toDateTime('2021-01-01 00:00:00', 'GMT'), 9223372036854775808);
|
|
2021-01-01 00:00:00
|
|
SELECT addYears(toDateTime('2021-01-01 00:00:00', 'GMT'), 9223372036854775808);
|
|
2021-01-01 00:00:00
|
|
-- tests with INT64_MAX
|
|
SELECT addMinutes(toDateTime('2020-01-01 00:00:00', 'GMT'), 9223372036854775807);
|
|
2019-12-31 23:59:00
|
|
SELECT addHours(toDateTime('2020-01-01 00:00:00', 'GMT'), 9223372036854775807);
|
|
2019-12-31 23:00:00
|
|
SELECT addWeeks(toDateTime('2020-01-01 00:00:00', 'GMT'), 9223372036854775807);
|
|
2019-12-25 00:00:00
|
|
SELECT addDays(toDateTime('2020-01-01 00:00:00', 'GMT'), 9223372036854775807);
|
|
2019-12-31 00:00:00
|
|
SELECT addYears(toDateTime('2020-01-01 00:00:00', 'GMT'), 9223372036854775807);
|
|
2019-01-01 00:00:00
|
|
-- tests with inf
|
|
SELECT addMinutes(toDateTime('2021-01-01 00:00:00', 'GMT'), inf);
|
|
2021-01-01 00:00:00
|
|
SELECT addHours(toDateTime('2021-01-01 00:00:00', 'GMT'), inf);
|
|
2021-01-01 00:00:00
|
|
SELECT addWeeks(toDateTime('2021-01-01 00:00:00', 'GMT'), inf);
|
|
2021-01-01 00:00:00
|
|
SELECT addDays(toDateTime('2021-01-01 00:00:00', 'GMT'), inf);
|
|
2021-01-01 00:00:00
|
|
SELECT addYears(toDateTime('2021-01-01 00:00:00', 'GMT'), inf);
|
|
2021-01-01 00:00:00
|