Make test 01852_cast_operator independent of timezone

This commit is contained in:
Alexey Milovidov 2021-07-31 21:24:23 +03:00
parent 701e2ffd79
commit 7fa24539b8
2 changed files with 3 additions and 3 deletions

View File

@ -13,7 +13,7 @@ SELECT CAST([1, 1 + 1, 1 + 2], \'Array(UInt32)\') AS c
2010-10-10
SELECT CAST(\'2010-10-10\', \'Date\') AS c
2010-10-10 00:00:00
SELECT CAST(\'2010-10-10\', \'DateTime\') AS c
SELECT CAST(\'2010-10-10\', \'DateTime(\\\'UTC\\\')\') AS c
['2010-10-10','2010-10-10']
SELECT CAST(\'[\\\'2010-10-10\\\', \\\'2010-10-10\\\']\', \'Array(Date)\')
3

View File

@ -19,8 +19,8 @@ EXPLAIN SYNTAX SELECT [1, 1 + 1, 1 + 2]::Array(UInt32) AS c;
SELECT '2010-10-10'::Date AS c;
EXPLAIN SYNTAX SELECT '2010-10-10'::Date AS c;
SELECT '2010-10-10'::DateTime AS c;
EXPLAIN SYNTAX SELECT '2010-10-10'::DateTime AS c;
SELECT '2010-10-10'::DateTime('UTC') AS c;
EXPLAIN SYNTAX SELECT '2010-10-10'::DateTime('UTC') AS c;
SELECT ['2010-10-10', '2010-10-10']::Array(Date) AS c;
EXPLAIN SYNTAX SELECT ['2010-10-10', '2010-10-10']::Array(Date);