mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
feat: support mulitple temporal filters in AdhocFilter and move the Time Section away (#21767)
This commit is contained in:
@@ -77,7 +77,11 @@ class SqliteEngineSpec(BaseEngineSpec):
|
||||
cls, target_type: str, dttm: datetime, db_extra: Optional[Dict[str, Any]] = None
|
||||
) -> Optional[str]:
|
||||
tt = target_type.upper()
|
||||
if tt in (utils.TemporalType.TEXT, utils.TemporalType.DATETIME):
|
||||
if tt in (
|
||||
utils.TemporalType.TEXT,
|
||||
utils.TemporalType.DATETIME,
|
||||
utils.TemporalType.TIMESTAMP,
|
||||
):
|
||||
return f"""'{dttm.isoformat(sep=" ", timespec="seconds")}'"""
|
||||
return None
|
||||
|
||||
|
||||
Reference in New Issue
Block a user