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
|
@ -7,28 +7,57 @@ class TestHive(Validator):
|
|||
def test_bits(self):
|
||||
self.validate_all(
|
||||
"x & 1",
|
||||
write={
|
||||
read={
|
||||
"duckdb": "x & 1",
|
||||
"presto": "BITWISE_AND(x, 1)",
|
||||
"spark": "x & 1",
|
||||
},
|
||||
write={
|
||||
"duckdb": "x & 1",
|
||||
"hive": "x & 1",
|
||||
"presto": "BITWISE_AND(x, 1)",
|
||||
"spark": "x & 1",
|
||||
},
|
||||
)
|
||||
self.validate_all(
|
||||
"~x",
|
||||
"x & 1 > 0",
|
||||
read={
|
||||
"duckdb": "x & 1 > 0",
|
||||
"presto": "BITWISE_AND(x, 1) > 0",
|
||||
"spark": "x & 1 > 0",
|
||||
},
|
||||
write={
|
||||
"duckdb": "x & 1 > 0",
|
||||
"presto": "BITWISE_AND(x, 1) > 0",
|
||||
"hive": "x & 1 > 0",
|
||||
"spark": "x & 1 > 0",
|
||||
},
|
||||
)
|
||||
self.validate_all(
|
||||
"~x",
|
||||
read={
|
||||
"duckdb": "~x",
|
||||
"presto": "BITWISE_NOT(x)",
|
||||
"spark": "~x",
|
||||
},
|
||||
write={
|
||||
"duckdb": "~x",
|
||||
"hive": "~x",
|
||||
"presto": "BITWISE_NOT(x)",
|
||||
"spark": "~x",
|
||||
},
|
||||
)
|
||||
self.validate_all(
|
||||
"x | 1",
|
||||
write={
|
||||
read={
|
||||
"duckdb": "x | 1",
|
||||
"presto": "BITWISE_OR(x, 1)",
|
||||
"spark": "x | 1",
|
||||
},
|
||||
write={
|
||||
"duckdb": "x | 1",
|
||||
"hive": "x | 1",
|
||||
"presto": "BITWISE_OR(x, 1)",
|
||||
"spark": "x | 1",
|
||||
},
|
||||
)
|
||||
|
@ -56,15 +85,6 @@ class TestHive(Validator):
|
|||
"spark": "SHIFTRIGHT(x, 1)",
|
||||
},
|
||||
)
|
||||
self.validate_all(
|
||||
"x & 1 > 0",
|
||||
write={
|
||||
"duckdb": "x & 1 > 0",
|
||||
"presto": "BITWISE_AND(x, 1) > 0",
|
||||
"hive": "x & 1 > 0",
|
||||
"spark": "x & 1 > 0",
|
||||
},
|
||||
)
|
||||
|
||||
def test_cast(self):
|
||||
self.validate_all(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue