You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by bk...@apache.org on 2024/01/12 01:02:22 UTC
(superset) 04/05: Fix presto timestamp
This is an automated email from the ASF dual-hosted git repository.
bkyryliuk pushed a commit to branch release/3.1.0.rc4
in repository https://gitbox.apache.org/repos/asf/superset.git
commit c697136c483a916ae07f4173edcac915bb6de80a
Author: Rui Zhao <zh...@dropbox.com>
AuthorDate: Thu Sep 28 20:03:28 2023 -0700
Fix presto timestamp
---
superset/db_engine_specs/presto.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/superset/db_engine_specs/presto.py b/superset/db_engine_specs/presto.py
index 27e86a7980..ce8efbb8d4 100644
--- a/superset/db_engine_specs/presto.py
+++ b/superset/db_engine_specs/presto.py
@@ -287,7 +287,7 @@ class PrestoBaseEngineSpec(BaseEngineSpec, metaclass=ABCMeta):
if isinstance(sqla_type, types.Date):
return f"DATE '{dttm.date().isoformat()}'"
if isinstance(sqla_type, types.TIMESTAMP):
- return f"""TIMESTAMP '{dttm.isoformat(timespec="microseconds", sep=" ")}'"""
+ return f"""TIMESTAMP '{dttm.isoformat(timespec="milliseconds", sep=" ")}'"""
return None