Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: SQLLab 500 error when user does not have admin access
Browse files Browse the repository at this point in the history
toniphan21 committed May 6, 2024
1 parent 9a339f0 commit e4d0612
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion superset/sql_parse.py
Original file line number Diff line number Diff line change
@@ -1582,7 +1582,7 @@ def extract_tables_from_jinja_sql(sql: str, database: Database) -> set[Table]:
return (
tables
| ParsedQuery(
sql_statement=processor.process_template(template),
sql_statement=processor.process_template(sql),
engine=database.db_engine_spec.engine,
).tables
)

0 comments on commit e4d0612

Please sign in to comment.