Adding upstream version 25.29.0.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
dfac4c492f
commit
c61927f460
97 changed files with 64720 additions and 61752 deletions
|
@ -1,5 +1,7 @@
|
|||
from tests.dialects.test_dialect import Validator
|
||||
|
||||
from sqlglot import exp
|
||||
|
||||
|
||||
class TestHive(Validator):
|
||||
dialect = "hive"
|
||||
|
@ -787,6 +789,23 @@ class TestHive(Validator):
|
|||
},
|
||||
)
|
||||
|
||||
self.validate_identity("EXISTS(col, x -> x % 2 = 0)").assert_is(exp.Exists)
|
||||
|
||||
self.validate_all(
|
||||
"SELECT EXISTS(ARRAY(2, 3), x -> x % 2 = 0)",
|
||||
read={
|
||||
"hive": "SELECT EXISTS(ARRAY(2, 3), x -> x % 2 = 0)",
|
||||
"spark2": "SELECT EXISTS(ARRAY(2, 3), x -> x % 2 = 0)",
|
||||
"spark": "SELECT EXISTS(ARRAY(2, 3), x -> x % 2 = 0)",
|
||||
"databricks": "SELECT EXISTS(ARRAY(2, 3), x -> x % 2 = 0)",
|
||||
},
|
||||
write={
|
||||
"spark2": "SELECT EXISTS(ARRAY(2, 3), x -> x % 2 = 0)",
|
||||
"spark": "SELECT EXISTS(ARRAY(2, 3), x -> x % 2 = 0)",
|
||||
"databricks": "SELECT EXISTS(ARRAY(2, 3), x -> x % 2 = 0)",
|
||||
},
|
||||
)
|
||||
|
||||
def test_escapes(self) -> None:
|
||||
self.validate_identity("'\n'", "'\\n'")
|
||||
self.validate_identity("'\\n'")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue