You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by vi...@apache.org on 2022/05/16 07:17:36 UTC

[superset] branch master updated: fix(dataset): handle missing sqla uri in migration (#20073)

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

villebro pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git


The following commit(s) were added to refs/heads/master by this push:
     new 4435e53901 fix(dataset): handle missing sqla uri in migration (#20073)
4435e53901 is described below

commit 4435e53901df4d64992a540694fbd3d5489c2220
Author: Ville Brofeldt <33...@users.noreply.github.com>
AuthorDate: Mon May 16 10:17:28 2022 +0300

    fix(dataset): handle missing sqla uri in migration (#20073)
---
 superset/migrations/versions/a9422eeaae74_new_dataset_models_take_2.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/superset/migrations/versions/a9422eeaae74_new_dataset_models_take_2.py b/superset/migrations/versions/a9422eeaae74_new_dataset_models_take_2.py
index 9a2498bfa8..87c7e13849 100644
--- a/superset/migrations/versions/a9422eeaae74_new_dataset_models_take_2.py
+++ b/superset/migrations/versions/a9422eeaae74_new_dataset_models_take_2.py
@@ -597,7 +597,7 @@ def postprocess_datasets(session: Session) -> None:
                 )
                 updated = True
 
-            if not is_physical and expression:
+            if not is_physical and drivername and expression:
                 table_refrences = extract_table_references(
                     expression, get_dialect_name(drivername), show_warning=False
                 )