diff --git a/dbms/tests/queries/0_stateless/00140_parse_unix_timestamp_as_datetime.reference b/dbms/tests/queries/0_stateless/00140_parse_unix_timestamp_as_datetime.reference new file mode 100644 index 00000000000..d00491fd7e5 --- /dev/null +++ b/dbms/tests/queries/0_stateless/00140_parse_unix_timestamp_as_datetime.reference @@ -0,0 +1 @@ +1 diff --git a/dbms/tests/queries/0_stateless/00140_parse_unix_timestamp_as_datetime.sql b/dbms/tests/queries/0_stateless/00140_parse_unix_timestamp_as_datetime.sql new file mode 100644 index 00000000000..822bff89833 --- /dev/null +++ b/dbms/tests/queries/0_stateless/00140_parse_unix_timestamp_as_datetime.sql @@ -0,0 +1 @@ +SELECT min(ts = toUInt32(toDateTime(toString(ts)))) FROM (SELECT 1000000000 + 1234 * number AS ts FROM system.numbers LIMIT 1000000);