From ad4c6a63e1043851e1c818f00ca8cf44289db0ab Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Sun, 18 Jul 2021 18:04:32 +0300 Subject: [PATCH] Fix and improve test --- .../0_stateless/01692_DateTime64_from_DateTime.reference | 6 +----- .../0_stateless/01692_DateTime64_from_DateTime.sql | 8 +++++--- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/tests/queries/0_stateless/01692_DateTime64_from_DateTime.reference b/tests/queries/0_stateless/01692_DateTime64_from_DateTime.reference index a0562e40027..3473b027c22 100644 --- a/tests/queries/0_stateless/01692_DateTime64_from_DateTime.reference +++ b/tests/queries/0_stateless/01692_DateTime64_from_DateTime.reference @@ -1,9 +1,5 @@ --- { echo } -select toDateTime64(toDateTime(1), 2); 1970-01-01 03:00:01.00 -select toDateTime64(toDate(1), 2); +1970-01-01 03:00:01.00 1970-01-02 00:00:00.00 -select toDateTime64(toDateTime(1), 2, 'GMT'); 1970-01-01 00:00:01.00 -select toDateTime64(toDate(1), 2, 'GMT'); 1970-01-02 00:00:00.00 diff --git a/tests/queries/0_stateless/01692_DateTime64_from_DateTime.sql b/tests/queries/0_stateless/01692_DateTime64_from_DateTime.sql index 60f76e9192c..fac0c341007 100644 --- a/tests/queries/0_stateless/01692_DateTime64_from_DateTime.sql +++ b/tests/queries/0_stateless/01692_DateTime64_from_DateTime.sql @@ -1,5 +1,7 @@ --- { echo } -select toDateTime64(toDateTime(1), 2); -select toDateTime64(toDate(1), 2); +select toDateTime64(toDateTime(1, 'Europe/Moscow'), 2); +select toDateTime64(toDate(1), 2) FORMAT Null; -- Unknown timezone +select toDateTime64(toDateTime(1), 2) FORMAT Null; -- Unknown timezone +select toDateTime64(toDateTime(1), 2, 'Europe/Moscow'); +select toDateTime64(toDate(1), 2, 'Europe/Moscow'); select toDateTime64(toDateTime(1), 2, 'GMT'); select toDateTime64(toDate(1), 2, 'GMT');