diff --git a/tests/queries/0_stateless/02507_to_unix_timestamp_overflow.reference b/tests/queries/0_stateless/02507_to_unix_timestamp_overflow.reference new file mode 100644 index 00000000000..f6e8cd50296 --- /dev/null +++ b/tests/queries/0_stateless/02507_to_unix_timestamp_overflow.reference @@ -0,0 +1 @@ +-1293882467 diff --git a/tests/queries/0_stateless/02507_to_unix_timestamp_overflow.sql b/tests/queries/0_stateless/02507_to_unix_timestamp_overflow.sql new file mode 100644 index 00000000000..42479f6dbec --- /dev/null +++ b/tests/queries/0_stateless/02507_to_unix_timestamp_overflow.sql @@ -0,0 +1,2 @@ +SELECT toUnixTimestamp(toDateTime64('1928-12-31 12:12:12.123', 3, 'UTC')); -- { serverError DECIMAL_OVERFLOW } +SELECT toInt64(toDateTime64('1928-12-31 12:12:12.123', 3, 'UTC'));