From 3936c4dc52f24b477cfb5bf4821bb17626bd69df Mon Sep 17 00:00:00 2001 From: Dmitry Kardymon Date: Wed, 31 May 2023 16:41:26 +0000 Subject: [PATCH] Try to fix fast tests (add timezone) --- .../01746_convert_type_with_default.sql | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/tests/queries/0_stateless/01746_convert_type_with_default.sql b/tests/queries/0_stateless/01746_convert_type_with_default.sql index 9fdd92491a7..75e1510f330 100644 --- a/tests/queries/0_stateless/01746_convert_type_with_default.sql +++ b/tests/queries/0_stateless/01746_convert_type_with_default.sql @@ -58,23 +58,23 @@ select toDateOrDefault(-1, '2000-01-01'::Date); select toDateTimeOrDefault('2023-05-30 14:38:20'); select toDateTimeOrDefault('2023-05-30 14:38:20', 'UTC'); -select toString(toDateTimeOrDefault('1xxx', 'Asia/Istanbul', '2023-05-30 14:38:20'::DateTime('Asia/Istanbul')), 'Asia/Istanbul'); -select toDateTimeOrDefault(1685457500); +select toDateTimeOrDefault('1xxx', 'UTC', '2023-05-30 14:38:20'::DateTime('UTC')); +select toDateTimeOrDefault(1685457500, 'UTC'); -select toDateTimeOrDefault(cast(19 as Int8)); -select toDateTimeOrDefault(cast(19 as UInt8)); +select toDateTimeOrDefault(cast(19 as Int8), 'UTC'); +select toDateTimeOrDefault(cast(19 as UInt8), 'UTC'); -select toDateTimeOrDefault(cast(19 as Int16)); -select toDateTimeOrDefault(cast(19 as UInt16)); +select toDateTimeOrDefault(cast(19 as Int16), 'UTC'); +select toDateTimeOrDefault(cast(19 as UInt16), 'UTC'); -select toDateTimeOrDefault(cast(19 as Int32)); -select toDateTimeOrDefault(cast(19 as UInt32)); +select toDateTimeOrDefault(cast(19 as Int32), 'UTC'); +select toDateTimeOrDefault(cast(19 as UInt32), 'UTC'); -select toDateTimeOrDefault(cast(19 as Int64)); -select toDateTimeOrDefault(cast(19 as UInt64)); +select toDateTimeOrDefault(cast(19 as Int64), 'UTC'); +select toDateTimeOrDefault(cast(19 as UInt64), 'UTC'); -select toDateTimeOrDefault(cast(19 as Int128)); -select toDateTimeOrDefault(cast(19 as UInt128)); +select toDateTimeOrDefault(cast(19 as Int128), 'UTC'); +select toDateTimeOrDefault(cast(19 as UInt128), 'UTC'); -select toDateTimeOrDefault(cast(19 as Int256)); -select toDateTimeOrDefault(cast(19 as UInt256)); \ No newline at end of file +select toDateTimeOrDefault(cast(19 as Int256), 'UTC'); +select toDateTimeOrDefault(cast(19 as UInt256), 'UTC'); \ No newline at end of file