mirror of
https://github.com/apache/superset.git
synced 2026-04-19 16:14:52 +00:00
fix: handle empty catalog when DB supports them (#29840)
This commit is contained in:
@@ -239,6 +239,7 @@ class TableSchemaView(BaseSupersetView):
|
||||
db.session.query(TableSchema).filter(
|
||||
TableSchema.tab_state_id == table["queryEditorId"],
|
||||
TableSchema.database_id == table["dbId"],
|
||||
TableSchema.catalog == table["catalog"],
|
||||
TableSchema.schema == table["schema"],
|
||||
TableSchema.table == table["name"],
|
||||
).delete(synchronize_session=False)
|
||||
@@ -246,6 +247,7 @@ class TableSchemaView(BaseSupersetView):
|
||||
table_schema = TableSchema(
|
||||
tab_state_id=table["queryEditorId"],
|
||||
database_id=table["dbId"],
|
||||
catalog=table["catalog"],
|
||||
schema=table["schema"],
|
||||
table=table["name"],
|
||||
description=json.dumps(table),
|
||||
|
||||
Reference in New Issue
Block a user