diff options
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()) |