This is an automated email from the ASF dual-hosted git repository.
beto 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 5866f3ec83 fix(import): Missing catalog field in saved query schema
(#32775)
5866f3ec83 is described below
commit 5866f3ec8390025d1a2e9dc9b64d945d13ac4a78
Author: Vladislav Korenkov <[email protected]>
AuthorDate: Fri Mar 21 06:33:51 2025 +1000
fix(import): Missing catalog field in saved query schema (#32775)
Co-authored-by: Vladislav Koren'kov <[email protected]>
---
superset/queries/saved_queries/schemas.py | 1 +
tests/integration_tests/fixtures/importexport.py | 1 +
2 files changed, 2 insertions(+)
diff --git a/superset/queries/saved_queries/schemas.py
b/superset/queries/saved_queries/schemas.py
index 7c314e6391..152ddcd087 100644
--- a/superset/queries/saved_queries/schemas.py
+++ b/superset/queries/saved_queries/schemas.py
@@ -39,6 +39,7 @@ get_export_ids_schema = {"type": "array", "items": {"type":
"integer"}}
class ImportV1SavedQuerySchema(Schema):
+ catalog = fields.String(allow_none=True, validate=Length(0, 128))
schema = fields.String(allow_none=True, validate=Length(0, 128))
label = fields.String(allow_none=True, validate=Length(0, 256))
description = fields.String(allow_none=True)
diff --git a/tests/integration_tests/fixtures/importexport.py
b/tests/integration_tests/fixtures/importexport.py
index 427d0d24a6..33aff24541 100644
--- a/tests/integration_tests/fixtures/importexport.py
+++ b/tests/integration_tests/fixtures/importexport.py
@@ -689,4 +689,5 @@ saved_queries_config = {
"uuid": "05b679b5-8eaf-452c-b874-a7a774cfa4e9",
"version": "1.0.0",
"database_uuid": "b8a1ccd3-779d-4ab7-8ad8-9ab119d7fe89",
+ "catalog": "default",
}