diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-10-10 08:53:14 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-10-10 08:53:14 +0000 |
commit | cd37a3bcaced9283c20baa52837c96b524baec54 (patch) | |
tree | 101b1c1487aa832a982dd635cd3b00d4d2ea3ae9 /tests/dialects/test_presto.py | |
parent | Releasing progress-linux version 18.11.2-1. (diff) | |
download | sqlglot-cd37a3bcaced9283c20baa52837c96b524baec54.tar.xz sqlglot-cd37a3bcaced9283c20baa52837c96b524baec54.zip |
Merging upstream version 18.11.6.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/dialects/test_presto.py')
-rw-r--r-- | tests/dialects/test_presto.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/dialects/test_presto.py b/tests/dialects/test_presto.py index 8edd31c..fd297d7 100644 --- a/tests/dialects/test_presto.py +++ b/tests/dialects/test_presto.py @@ -353,6 +353,12 @@ class TestPresto(Validator): }, ) self.validate_all( + "CAST('2012-10-31 00:00' AS TIMESTAMP) AT TIME ZONE 'America/Sao_Paulo'", + read={ + "spark": "FROM_UTC_TIMESTAMP('2012-10-31 00:00', 'America/Sao_Paulo')", + }, + ) + self.validate_all( "CAST(x AS TIMESTAMP)", write={"presto": "CAST(x AS TIMESTAMP)"}, read={"mysql": "CAST(x AS DATETIME)", "clickhouse": "CAST(x AS DATETIME64)"}, |