You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by hu...@apache.org on 2022/09/29 17:32:48 UTC
[superset] 01/01: client is sending milliseconds for start time
This is an automated email from the ASF dual-hosted git repository.
hugh pushed a commit to branch fix-async-exc
in repository https://gitbox.apache.org/repos/asf/superset.git
commit 538a74ca06a8400d9fa33488049f119accf82904
Author: hughhhh <hu...@gmail.com>
AuthorDate: Thu Sep 29 13:32:14 2022 -0400
client is sending milliseconds for start time
---
superset/sql_lab.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/superset/sql_lab.py b/superset/sql_lab.py
index ea91133270..07063c7811 100644
--- a/superset/sql_lab.py
+++ b/superset/sql_lab.py
@@ -233,7 +233,7 @@ def execute_sql_statement( # pylint: disable=too-many-arguments,too-many-statem
)
if apply_ctas:
if not query.tmp_table_name:
- start_dttm = datetime.fromtimestamp(query.start_time)
+ start_dttm = datetime.fromtimestamp(query.start_time / 1000)
query.tmp_table_name = "tmp_{}_table_{}".format(
query.user_id, start_dttm.strftime("%Y_%m_%d_%H_%M_%S")
)