ClickHouse/tests/queries/0_stateless/02972_to_string_nullable_timezone.sql
2024-01-25 12:01:51 +00:00

5 lines
350 B
SQL

SET session_timezone='Europe/Amsterdam';
SELECT toString(toDateTime('2022-01-01 12:13:14'), CAST('UTC', 'Nullable(String)'));
SELECT toString(toDateTime('2022-01-01 12:13:14'), materialize(CAST('UTC', 'Nullable(String)')));
SELECT toString(CAST(toDateTime('2022-01-01 12:13:14'), 'Nullable(DateTime)'), materialize(CAST('UTC', 'Nullable(String)')));