summaryrefslogtreecommitdiffstats
path: root/tests/dataframe
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2023-07-24 08:03:48 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2023-07-24 08:03:48 +0000
commit36db14f4c6c28209371d563d76697df0172e337f (patch)
tree527347be54a38fc9b14fe1fa04c27a4bbae44016 /tests/dataframe
parentReleasing debian version 17.4.1-1. (diff)
downloadsqlglot-36db14f4c6c28209371d563d76697df0172e337f.tar.xz
sqlglot-36db14f4c6c28209371d563d76697df0172e337f.zip
Merging upstream version 17.7.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/dataframe')
-rw-r--r--tests/dataframe/unit/test_functions.py4
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())