Adding upstream version 17.11.0.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
19b35e2a28
commit
276276930e
69 changed files with 30974 additions and 30030 deletions
|
@ -583,6 +583,38 @@ class TestDuckDB(Validator):
|
|||
write={"duckdb": "SELECT a, BOOL_OR(b) FROM table GROUP BY a"},
|
||||
)
|
||||
|
||||
def test_encode_decode(self):
|
||||
self.validate_all(
|
||||
"ENCODE(x)",
|
||||
read={
|
||||
"spark": "ENCODE(x, 'utf-8')",
|
||||
"presto": "TO_UTF8(x)",
|
||||
},
|
||||
write={
|
||||
"duckdb": "ENCODE(x)",
|
||||
"spark": "ENCODE(x, 'utf-8')",
|
||||
"presto": "TO_UTF8(x)",
|
||||
},
|
||||
)
|
||||
self.validate_all(
|
||||
"DECODE(x)",
|
||||
read={
|
||||
"spark": "DECODE(x, 'utf-8')",
|
||||
"presto": "FROM_UTF8(x)",
|
||||
},
|
||||
write={
|
||||
"duckdb": "DECODE(x)",
|
||||
"spark": "DECODE(x, 'utf-8')",
|
||||
"presto": "FROM_UTF8(x)",
|
||||
},
|
||||
)
|
||||
self.validate_all(
|
||||
"DECODE(x)",
|
||||
read={
|
||||
"presto": "FROM_UTF8(x, y)",
|
||||
},
|
||||
)
|
||||
|
||||
def test_rename_table(self):
|
||||
self.validate_all(
|
||||
"ALTER TABLE db.t1 RENAME TO db.t2",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue