zhaoyongjie commented on code in PR #20559:
URL: https://github.com/apache/superset/pull/20559#discussion_r910729946
##########
superset/models/core.py:
##########
@@ -760,11 +760,11 @@ def get_perm(self) -> str:
def has_table(self, table: Table) -> bool:
engine = self.get_sqla_engine()
- return engine.has_table(table.table_name, table.schema or None)
+ return engine.has_table(table.table_name, table.schema or None) or
table.table_name in engine.table_names()
Review Comment:
The `has_table` is similar to `table_names` that should implement in dialect.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]