From ac31d22572faefaa85ac90fc949d80dcd675f8a2 Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Mon, 20 Apr 2020 10:23:17 +0300 Subject: [PATCH] More tests --- .../0_stateless/01252_weird_time_zone.reference | 14 +++++++------- .../queries/0_stateless/01252_weird_time_zone.sql | 15 ++++++++------- 2 files changed, 15 insertions(+), 14 deletions(-) diff --git a/tests/queries/0_stateless/01252_weird_time_zone.reference b/tests/queries/0_stateless/01252_weird_time_zone.reference index 7d569731109..f2968d4efa6 100644 --- a/tests/queries/0_stateless/01252_weird_time_zone.reference +++ b/tests/queries/0_stateless/01252_weird_time_zone.reference @@ -1,7 +1,7 @@ -2020-01-02 03:04:05 -2020-01-02 03:04:05 -2020-01-02 03:04:05 -2020-01-02 03:04:05 -2020-01-02 03:04:05 -2020-01-02 03:04:05 -2020-01-02 03:04:05 +2020-01-02 03:04:05 2020-01-02 00:00:00 3 +2020-01-02 03:04:05 2020-01-02 00:00:00 3 +2020-01-02 03:04:05 2020-01-02 00:00:00 3 +2020-01-02 03:04:05 2020-01-02 00:00:00 3 +2020-01-02 03:04:05 2020-01-02 00:00:00 3 +2020-01-02 03:04:05 2020-01-02 00:00:00 3 +2020-01-02 03:04:05 2020-01-02 00:00:00 3 diff --git a/tests/queries/0_stateless/01252_weird_time_zone.sql b/tests/queries/0_stateless/01252_weird_time_zone.sql index e2500548530..cd01ca6832e 100644 --- a/tests/queries/0_stateless/01252_weird_time_zone.sql +++ b/tests/queries/0_stateless/01252_weird_time_zone.sql @@ -1,7 +1,8 @@ -SELECT toDateTime('2020-01-02 03:04:05', 'Pacific/Kiritimati'); -SELECT toDateTime('2020-01-02 03:04:05', 'Africa/El_Aaiun'); -SELECT toDateTime('2020-01-02 03:04:05', 'Asia/Pyongyang'); -SELECT toDateTime('2020-01-02 03:04:05', 'Pacific/Kwajalein'); -SELECT toDateTime('2020-01-02 03:04:05', 'Pacific/Apia'); -SELECT toDateTime('2020-01-02 03:04:05', 'Pacific/Enderbury'); -SELECT toDateTime('2020-01-02 03:04:05', 'Pacific/Fakaofo'); +SELECT toDateTime('2020-01-02 03:04:05', 'Pacific/Kiritimati') AS x, toStartOfDay(x), toHour(x); +SELECT toDateTime('2020-01-02 03:04:05', 'Africa/El_Aaiun') AS x, toStartOfDay(x), toHour(x); +SELECT toDateTime('2020-01-02 03:04:05', 'Asia/Pyongyang') AS x, toStartOfDay(x), toHour(x); +SELECT toDateTime('2020-01-02 03:04:05', 'Pacific/Kwajalein') AS x, toStartOfDay(x), toHour(x); +SELECT toDateTime('2020-01-02 03:04:05', 'Pacific/Apia') AS x, toStartOfDay(x), toHour(x); +SELECT toDateTime('2020-01-02 03:04:05', 'Pacific/Enderbury') AS x, toStartOfDay(x), toHour(x); +SELECT toDateTime('2020-01-02 03:04:05', 'Pacific/Fakaofo') AS x, toStartOfDay(x), toHour(x); +