Merging upstream version 17.12.0.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
aa315e6009
commit
aae08e0bb3
64 changed files with 12465 additions and 11885 deletions
20
tests/dialects/test_doris.py
Normal file
20
tests/dialects/test_doris.py
Normal file
|
@ -0,0 +1,20 @@
|
|||
from tests.dialects.test_dialect import Validator
|
||||
|
||||
|
||||
class TestDoris(Validator):
|
||||
dialect = "doris"
|
||||
|
||||
def test_identity(self):
|
||||
self.validate_identity("SELECT CAST(`a`.`b` AS INT) FROM foo")
|
||||
self.validate_identity("SELECT APPROX_COUNT_DISTINCT(a) FROM x")
|
||||
|
||||
def test_time(self):
|
||||
self.validate_identity("TIMESTAMP('2022-01-01')")
|
||||
|
||||
def test_regex(self):
|
||||
self.validate_all(
|
||||
"SELECT REGEXP_LIKE(abc, '%foo%')",
|
||||
write={
|
||||
"doris": "SELECT REGEXP(abc, '%foo%')",
|
||||
},
|
||||
)
|
Loading…
Add table
Add a link
Reference in a new issue