fix(sqla): support for date adhoc filter (#16634)
This commit is contained in:
parent
c66f278b42
commit
6465ee7dbd
|
|
@ -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(),
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
),
|
||||
(
|
||||
|
|
|
|||
Loading…
Reference in New Issue