Adding upstream version 25.21.3.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
0b78a18345
commit
cfe8a51f10
105 changed files with 50314 additions and 49385 deletions
|
@ -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()",
|
||||
},
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue