mirror of
https://github.com/apache/superset.git
synced 2026-05-12 19:35:17 +00:00
fix: calls to _get_sqla_engine (#24953)
(cherry picked from commit 6f24a4e7a8)
This commit is contained in:
committed by
Michael S. Molina
parent
5d8c65ae6f
commit
ff2ec23102
@@ -120,9 +120,8 @@ def drop_table_if_exists(table_name: str, table_type: CtasMethod) -> None:
|
||||
def quote_f(value: Optional[str]):
|
||||
if not value:
|
||||
return value
|
||||
return get_example_database().inspector.engine.dialect.identifier_preparer.quote_identifier(
|
||||
value
|
||||
)
|
||||
with get_example_database().get_inspector_with_context() as inspector:
|
||||
return inspector.engine.dialect.identifier_preparer.quote_identifier(value)
|
||||
|
||||
|
||||
def cta_result(ctas_method: CtasMethod):
|
||||
|
||||
Reference in New Issue
Block a user