1
0
Fork 0

Adding upstream version 20.1.0.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-02-13 21:16:46 +01:00
parent 6a89523da4
commit 5bd573dda1
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
127 changed files with 73384 additions and 73067 deletions

View file

@ -147,6 +147,9 @@ class TestTeradata(Validator):
def test_mod(self):
self.validate_all("a MOD b", write={"teradata": "a MOD b", "mysql": "a % b"})
def test_power(self):
self.validate_all("a ** b", write={"teradata": "a ** b", "mysql": "POWER(a, b)"})
def test_abbrev(self):
self.validate_identity("a LT b", "a < b")
self.validate_identity("a LE b", "a <= b")
@ -191,3 +194,14 @@ class TestTeradata(Validator):
},
)
self.validate_identity("CAST('1992-01' AS FORMAT 'YYYY-DD')")
self.validate_all(
"TRYCAST('-2.5' AS DECIMAL(5, 2))",
read={
"snowflake": "TRY_CAST('-2.5' AS DECIMAL(5, 2))",
},
write={
"snowflake": "TRY_CAST('-2.5' AS DECIMAL(5, 2))",
"teradata": "TRYCAST('-2.5' AS DECIMAL(5, 2))",
},
)