Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
betodealmeida committed Nov 1, 2021
1 parent 0ec0b45 commit fb5db2e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion superset/connectors/sqla/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1682,7 +1682,7 @@ def before_update(
target: "SqlaTable",
) -> None:
"""
Check whether before update if the target table already exists.
Check before update if the target table already exists.
Note this listener is called when any fields are being updated and thus it is
necessary to first check whether the reference table is being updated.
Expand Down
3 changes: 2 additions & 1 deletion superset/examples/birth_names.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,8 @@ def _set_table_metadata(datasource: SqlaTable, database: "Database") -> None:

datasource.main_dttm_col = "ds"
datasource.database = database
datasource.schema = schema
if schema:
datasource.schema = schema
datasource.filter_select_enabled = True
datasource.fetch_metadata()

Expand Down

0 comments on commit fb5db2e

Please sign in to comment.