diff --git a/superset/charts/commands/importers/v1/__init__.py b/superset/charts/commands/importers/v1/__init__.py index f407a4662c47e..ab88038aaabe5 100644 --- a/superset/charts/commands/importers/v1/__init__.py +++ b/superset/charts/commands/importers/v1/__init__.py @@ -89,9 +89,7 @@ def _import( config.update( { "datasource_id": dataset.id, - "datasource_type": "view" - if dataset.is_sqllab_view - else "table", + "datasource_type": "table", "datasource_name": dataset.table_name, } ) diff --git a/superset/commands/importers/v1/examples.py b/superset/commands/importers/v1/examples.py index 43d7e7e1fa26f..679b9c441beb4 100644 --- a/superset/commands/importers/v1/examples.py +++ b/superset/commands/importers/v1/examples.py @@ -138,7 +138,7 @@ def _import( # pylint: disable=arguments-differ, too-many-locals, too-many-bran dataset_info[str(dataset.uuid)] = { "datasource_id": dataset.id, - "datasource_type": "view" if dataset.is_sqllab_view else "table", + "datasource_type": "table", "datasource_name": dataset.table_name, }