Merging upstream version 18.2.0.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
985db29269
commit
53cf4a81a6
124 changed files with 60313 additions and 50346 deletions
|
@ -390,6 +390,13 @@ class TestHive(Validator):
|
|||
)
|
||||
|
||||
def test_hive(self):
|
||||
self.validate_identity("SELECT * FROM my_table TIMESTAMP AS OF DATE_ADD(CURRENT_DATE, -1)")
|
||||
self.validate_identity("SELECT * FROM my_table VERSION AS OF DATE_ADD(CURRENT_DATE, -1)")
|
||||
|
||||
self.validate_identity(
|
||||
"SELECT ROW() OVER (DISTRIBUTE BY x SORT BY y)",
|
||||
"SELECT ROW() OVER (PARTITION BY x ORDER BY y)",
|
||||
)
|
||||
self.validate_identity("SELECT transform")
|
||||
self.validate_identity("SELECT * FROM test DISTRIBUTE BY y SORT BY x DESC ORDER BY l")
|
||||
self.validate_identity(
|
||||
|
@ -591,7 +598,7 @@ class TestHive(Validator):
|
|||
read={
|
||||
"": "VAR_MAP(a, b, c, d)",
|
||||
"clickhouse": "map(a, b, c, d)",
|
||||
"duckdb": "MAP(LIST_VALUE(a, c), LIST_VALUE(b, d))",
|
||||
"duckdb": "MAP([a, c], [b, d])",
|
||||
"hive": "MAP(a, b, c, d)",
|
||||
"presto": "MAP(ARRAY[a, c], ARRAY[b, d])",
|
||||
"spark": "MAP(a, b, c, d)",
|
||||
|
@ -599,7 +606,7 @@ class TestHive(Validator):
|
|||
write={
|
||||
"": "MAP(ARRAY(a, c), ARRAY(b, d))",
|
||||
"clickhouse": "map(a, b, c, d)",
|
||||
"duckdb": "MAP(LIST_VALUE(a, c), LIST_VALUE(b, d))",
|
||||
"duckdb": "MAP([a, c], [b, d])",
|
||||
"presto": "MAP(ARRAY[a, c], ARRAY[b, d])",
|
||||
"hive": "MAP(a, b, c, d)",
|
||||
"spark": "MAP(a, b, c, d)",
|
||||
|
@ -609,7 +616,7 @@ class TestHive(Validator):
|
|||
self.validate_all(
|
||||
"MAP(a, b)",
|
||||
write={
|
||||
"duckdb": "MAP(LIST_VALUE(a), LIST_VALUE(b))",
|
||||
"duckdb": "MAP([a], [b])",
|
||||
"presto": "MAP(ARRAY[a], ARRAY[b])",
|
||||
"hive": "MAP(a, b)",
|
||||
"spark": "MAP(a, b)",
|
||||
|
@ -717,9 +724,7 @@ class TestHive(Validator):
|
|||
self.validate_identity("'\\\\n'")
|
||||
self.validate_identity("''")
|
||||
self.validate_identity("'\\\\'")
|
||||
self.validate_identity("'\z'")
|
||||
self.validate_identity("'\\z'")
|
||||
self.validate_identity("'\\\z'")
|
||||
self.validate_identity("'\\\\z'")
|
||||
|
||||
def test_data_type(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue