2025-02-13 06:15:54 +01:00
|
|
|
from tests.dialects.test_dialect import Validator
|
|
|
|
|
|
|
|
|
|
|
|
class TestMySQL(Validator):
|
|
|
|
dialect = "starrocks"
|
|
|
|
|
|
|
|
def test_identity(self):
|
|
|
|
self.validate_identity("SELECT CAST(`a`.`b` AS INT) FROM foo")
|
2025-02-13 15:52:09 +01:00
|
|
|
self.validate_identity("SELECT APPROX_COUNT_DISTINCT(a) FROM x")
|
2025-02-13 14:53:05 +01:00
|
|
|
|
|
|
|
def test_time(self):
|
|
|
|
self.validate_identity("TIMESTAMP('2022-01-01')")
|