From eb134377b293ed2ad17265899d317ad02c8baa81 Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Sun, 18 Jul 2021 18:01:16 +0300 Subject: [PATCH] Fix tests --- .../01732_more_consistent_datetime64_parsing.sql | 8 ++++---- .../0_stateless/01734_datetime64_from_float.reference | 4 ---- tests/queries/0_stateless/01734_datetime64_from_float.sql | 7 +++---- 3 files changed, 7 insertions(+), 12 deletions(-) diff --git a/tests/queries/0_stateless/01732_more_consistent_datetime64_parsing.sql b/tests/queries/0_stateless/01732_more_consistent_datetime64_parsing.sql index dcd874f8c45..88859177a92 100644 --- a/tests/queries/0_stateless/01732_more_consistent_datetime64_parsing.sql +++ b/tests/queries/0_stateless/01732_more_consistent_datetime64_parsing.sql @@ -5,7 +5,7 @@ INSERT INTO t VALUES (3, '1111111111222'); INSERT INTO t VALUES (4, '1111111111.222'); SELECT * FROM t ORDER BY i; -SELECT toDateTime64(1111111111.222, 3); -SELECT toDateTime64('1111111111.222', 3); -SELECT toDateTime64('1111111111222', 3); -SELECT ignore(toDateTime64(1111111111222, 3)); -- This gives somewhat correct but unexpected result +SELECT toDateTime64(1111111111.222, 3, 'Europe/Moscow'); +SELECT toDateTime64('1111111111.222', 3, 'Europe/Moscow'); +SELECT toDateTime64('1111111111222', 3, 'Europe/Moscow'); +SELECT ignore(toDateTime64(1111111111222, 3, 'Europe/Moscow')); -- This gives somewhat correct but unexpected result diff --git a/tests/queries/0_stateless/01734_datetime64_from_float.reference b/tests/queries/0_stateless/01734_datetime64_from_float.reference index 32e7d2736c6..eb96016311d 100644 --- a/tests/queries/0_stateless/01734_datetime64_from_float.reference +++ b/tests/queries/0_stateless/01734_datetime64_from_float.reference @@ -1,7 +1,3 @@ --- { echo } -SELECT CAST(1111111111.222 AS DateTime64(3)); 2005-03-18 04:58:31.222 -SELECT toDateTime(1111111111.222, 3); 2005-03-18 04:58:31.222 -SELECT toDateTime64(1111111111.222, 3); 2005-03-18 04:58:31.222 diff --git a/tests/queries/0_stateless/01734_datetime64_from_float.sql b/tests/queries/0_stateless/01734_datetime64_from_float.sql index b6be65cb7c2..416638a4a73 100644 --- a/tests/queries/0_stateless/01734_datetime64_from_float.sql +++ b/tests/queries/0_stateless/01734_datetime64_from_float.sql @@ -1,4 +1,3 @@ --- { echo } -SELECT CAST(1111111111.222 AS DateTime64(3)); -SELECT toDateTime(1111111111.222, 3); -SELECT toDateTime64(1111111111.222, 3); +SELECT CAST(1111111111.222 AS DateTime64(3, 'Europe/Moscow')); +SELECT toDateTime(1111111111.222, 3, 'Europe/Moscow'); +SELECT toDateTime64(1111111111.222, 3, 'Europe/Moscow');