mirror of
https://github.com/apache/superset.git
synced 2026-04-19 16:14:52 +00:00
fix: Upload CSV as Dataset (#34763)
This commit is contained in:
@@ -1205,7 +1205,9 @@ class Database(Model, AuditMixinNullable, ImportExportMixin): # pylint: disable
|
||||
def has_table(self, table: Table) -> bool:
|
||||
with self.get_sqla_engine(catalog=table.catalog, schema=table.schema) as engine:
|
||||
# do not pass "" as an empty schema; force null
|
||||
return engine.has_table(table.table, table.schema or None)
|
||||
if engine.has_table(table.table, table.schema or None):
|
||||
return True
|
||||
return engine.has_table(table.table.lower(), table.schema or None)
|
||||
|
||||
def has_view(self, table: Table) -> bool:
|
||||
with self.get_sqla_engine(catalog=table.catalog, schema=table.schema) as engine:
|
||||
|
||||
Reference in New Issue
Block a user