diff --git a/superset/datasets/schemas.py b/superset/datasets/schemas.py index 00599c05c..5b899d840 100644 --- a/superset/datasets/schemas.py +++ b/superset/datasets/schemas.py @@ -249,6 +249,7 @@ class ImportV1DatasetSchema(Schema): offset = fields.Integer() cache_timeout = fields.Integer(allow_none=True) schema = fields.String(allow_none=True) + catalog = fields.String(allow_none=True) sql = fields.String(allow_none=True) params = fields.Dict(allow_none=True) template_params = fields.Dict(allow_none=True) diff --git a/tests/integration_tests/fixtures/importexport.py b/tests/integration_tests/fixtures/importexport.py index 5096c2723..cccf4fa77 100644 --- a/tests/integration_tests/fixtures/importexport.py +++ b/tests/integration_tests/fixtures/importexport.py @@ -494,6 +494,7 @@ dataset_config: dict[str, Any] = { "offset": 66, "cache_timeout": 55, "schema": "", + "catalog": "default", "sql": "", "params": None, "template_params": {},