Adding upstream version 26.6.0.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
This commit is contained in:
parent
cfc058b43a
commit
4b797b16f0
99 changed files with 40433 additions and 38803 deletions
23
tests/dialects/test_dune.py
Normal file
23
tests/dialects/test_dune.py
Normal file
|
@ -0,0 +1,23 @@
|
|||
from tests.dialects.test_dialect import Validator
|
||||
|
||||
|
||||
class TestDune(Validator):
|
||||
dialect = "dune"
|
||||
|
||||
def test_dune(self):
|
||||
self.validate_identity("CAST(x AS INT256)")
|
||||
self.validate_identity("CAST(x AS UINT256)")
|
||||
|
||||
self.validate_all(
|
||||
"SELECT 0xdeadbeef",
|
||||
read={
|
||||
"dune": "SELECT X'deadbeef'",
|
||||
"postgres": "SELECT x'deadbeef'",
|
||||
"trino": "SELECT X'deadbeef'",
|
||||
},
|
||||
write={
|
||||
"dune": "SELECT 0xdeadbeef",
|
||||
"postgres": "SELECT x'deadbeef'",
|
||||
"trino": "SELECT X'deadbeef'",
|
||||
},
|
||||
)
|
Loading…
Add table
Add a link
Reference in a new issue