Merging upstream version 17.7.0.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
87252470ef
commit
137902868c
93 changed files with 41580 additions and 39040 deletions
|
@ -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())
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue