1
0
Fork 0

Adding upstream version 25.21.3.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-02-13 21:54:30 +01:00
parent 0b78a18345
commit cfe8a51f10
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
105 changed files with 50314 additions and 49385 deletions

View file

@ -1787,6 +1787,13 @@ class TestDialect(Validator):
"spark": "FILTER(the_array, x -> x > 0)",
},
)
self.validate_all(
"FILTER(the_array, x -> x > 0)",
write={
"presto": "FILTER(the_array, x -> x > 0)",
"starrocks": "ARRAY_FILTER(the_array, x -> x > 0)",
},
)
self.validate_all(
"a / b",
write={
@ -2853,3 +2860,34 @@ FROM subquery2""",
"bigquery": "RTRIM('Hello World', 'd')",
},
)
def test_uuid(self):
self.validate_all(
"UUID()",
read={
"hive": "UUID()",
"spark2": "UUID()",
"spark": "UUID()",
"databricks": "UUID()",
"duckdb": "UUID()",
"presto": "UUID()",
"trino": "UUID()",
"mysql": "UUID()",
"postgres": "GEN_RANDOM_UUID()",
"bigquery": "GENERATE_UUID()",
"snowflake": "UUID_STRING()",
},
write={
"hive": "UUID()",
"spark2": "UUID()",
"spark": "UUID()",
"databricks": "UUID()",
"duckdb": "UUID()",
"presto": "UUID()",
"trino": "UUID()",
"mysql": "UUID()",
"postgres": "GEN_RANDOM_UUID()",
"bigquery": "GENERATE_UUID()",
"snowflake": "UUID_STRING()",
},
)