You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by el...@apache.org on 2023/06/14 23:59:58 UTC

[superset] 02/02: retry tables on import

This is an automated email from the ASF dual-hosted git repository.

elizabeth pushed a commit to tag 2.1.1rc1
in repository https://gitbox.apache.org/repos/asf/superset.git

commit f2724a7af444974f209afd67189c553295986572
Author: Elizabeth Thompson <es...@gmail.com>
AuthorDate: Wed Jun 14 16:59:02 2023 -0700

    retry tables on import
---
 superset/datasets/commands/importers/v1/utils.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/superset/datasets/commands/importers/v1/utils.py b/superset/datasets/commands/importers/v1/utils.py
index 2df85cdfa2..d0ce87222f 100644
--- a/superset/datasets/commands/importers/v1/utils.py
+++ b/superset/datasets/commands/importers/v1/utils.py
@@ -168,9 +168,9 @@ def import_dataset(
     except Exception:  # pylint: disable=broad-except
         # MySQL doesn't play nice with GSheets table names
         logger.warning(
-            "Couldn't check if table %s exists, assuming it does", dataset.table_name
+            "Couldn't check if table %s exists, assuming it doesn't", dataset.table_name
         )
-        table_exists = True
+        table_exists = False
 
     if data_uri and (not table_exists or force_data):
         load_data(data_uri, dataset, dataset.database, session)