fix: Upload CSV as Dataset (#34763)

This commit is contained in:
Luiz Otavio
2025-09-08 11:48:23 -03:00
committed by GitHub
parent 0fce5ecfa5
commit 1c2b9db4f0
4 changed files with 776 additions and 8 deletions

View File

@@ -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: