fix(sqla): support for date adhoc filter (#16634)

This commit is contained in:
Ville Brofeldt 2021-09-09 06:41:50 +03:00 committed by GitHub
parent c66f278b42
commit 6465ee7dbd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View File

@ -250,7 +250,11 @@ class BaseEngineSpec: # pylint: disable=too-many-public-methods
types.DateTime(),
GenericDataType.TEMPORAL,
),
(re.compile(r"^date", re.IGNORECASE), types.Date(), GenericDataType.TEMPORAL,),
(
re.compile(r"^date", re.IGNORECASE),
types.DateTime(),
GenericDataType.TEMPORAL,
),
(
re.compile(r"^timestamp", re.IGNORECASE),
types.TIMESTAMP(),

View File

@ -508,7 +508,7 @@ class PrestoEngineSpec(BaseEngineSpec): # pylint: disable=too-many-public-metho
),
(
re.compile(r"^date.*", re.IGNORECASE),
types.DATE(),
types.DATETIME(),
utils.GenericDataType.TEMPORAL,
),
(