Skip to content

Commit

Permalink
fix(catalog): Table Schema View with no catalog (apache#30139)
Browse files Browse the repository at this point in the history
(cherry picked from commit 6009023)
  • Loading branch information
Antonio-RiveroMartnez authored and sadpandajoe committed Sep 4, 2024
1 parent 1d90ee3 commit acf3e12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions superset/views/sql_lab/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,15 +239,15 @@ def post(self) -> FlaskResponse:
db.session.query(TableSchema).filter(
TableSchema.tab_state_id == table["queryEditorId"],
TableSchema.database_id == table["dbId"],
TableSchema.catalog == table["catalog"],
TableSchema.catalog == table.get("catalog"),
TableSchema.schema == table["schema"],
TableSchema.table == table["name"],
).delete(synchronize_session=False)

table_schema = TableSchema(
tab_state_id=table["queryEditorId"],
database_id=table["dbId"],
catalog=table["catalog"],
catalog=table.get("catalog"),
schema=table["schema"],
table=table["name"],
description=json.dumps(table),
Expand Down

0 comments on commit acf3e12

Please sign in to comment.