diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-07-24 08:03:45 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-07-24 08:03:45 +0000 |
commit | ca57dc468e5d8d0920e964d45ad25271ae6e633d (patch) | |
tree | 319d8bffcb5c3e9afe9e62beca9ef401480578d2 /tests/dataframe | |
parent | Adding upstream version 17.4.1. (diff) | |
download | sqlglot-ca57dc468e5d8d0920e964d45ad25271ae6e633d.tar.xz sqlglot-ca57dc468e5d8d0920e964d45ad25271ae6e633d.zip |
Adding upstream version 17.7.0.upstream/17.7.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | tests/dataframe/unit/test_functions.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/dataframe/unit/test_functions.py b/tests/dataframe/unit/test_functions.py index 556001c..2fb5650 100644 --- a/tests/dataframe/unit/test_functions.py +++ b/tests/dataframe/unit/test_functions.py @@ -851,9 +851,9 @@ class TestFunctions(unittest.TestCase): def test_to_timestamp(self): col_str = SF.to_timestamp("cola") - self.assertEqual("TO_TIMESTAMP(cola)", col_str.sql()) + self.assertEqual("CAST(cola AS TIMESTAMP)", col_str.sql()) col = SF.to_timestamp(SF.col("cola")) - self.assertEqual("TO_TIMESTAMP(cola)", col.sql()) + self.assertEqual("CAST(cola AS TIMESTAMP)", col.sql()) col_with_format = SF.to_timestamp("cola", "yyyy-MM-dd") self.assertEqual("TO_TIMESTAMP(cola, 'yyyy-MM-dd')", col_with_format.sql()) |