mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
chore(ssh-tunnel): Refactor establishing raw connection with contextmanger (#22366)
This commit is contained in:
@@ -162,6 +162,8 @@ class PrestoDBSQLValidator(BaseSQLValidator):
|
||||
statements = parsed_query.get_statements()
|
||||
|
||||
logger.info("Validating %i statement(s)", len(statements))
|
||||
# todo(hughhh): update this to use new database.get_raw_connection()
|
||||
# this function keeps stalling CI
|
||||
with database.get_sqla_engine_with_context(
|
||||
schema, source=QuerySource.SQL_LAB
|
||||
) as engine:
|
||||
|
||||
Reference in New Issue
Block a user