mirror of
https://github.com/apache/superset.git
synced 2026-05-11 19:05:24 +00:00
fix: catalog upgrade/downgrade (#29780)
(cherry picked from commit 525e837c5b)
This commit is contained in:
@@ -434,8 +434,8 @@ class DatabricksNativeEngineSpec(DatabricksDynamicBaseEngineSpec):
|
||||
cls,
|
||||
database: Database,
|
||||
) -> str | None:
|
||||
with database.get_inspector() as inspector:
|
||||
return inspector.bind.execute("SELECT current_catalog()").scalar()
|
||||
with database.get_sqla_engine() as engine:
|
||||
return engine.execute("SELECT current_catalog()").scalar()
|
||||
|
||||
@classmethod
|
||||
def get_prequeries(
|
||||
|
||||
Reference in New Issue
Block a user