Skip to content

Commit

Permalink
fix(dataset import): Support catalog field during dataset import (apa…
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitor-Avila committed Jul 12, 2024
1 parent 84a1cd2 commit 0d352b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions superset/datasets/schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@ def fix_extra(self, data: dict[str, Any], **kwargs: Any) -> dict[str, Any]:
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)
Expand Down
1 change: 1 addition & 0 deletions tests/integration_tests/fixtures/importexport.py
Original file line number Diff line number Diff line change
Expand Up @@ -494,6 +494,7 @@
"offset": 66,
"cache_timeout": 55,
"schema": "",
"catalog": "default",
"sql": "",
"params": None,
"template_params": {},
Expand Down

0 comments on commit 0d352b4

Please sign in to comment.