mirror of
https://github.com/apache/superset.git
synced 2026-05-12 19:35:17 +00:00
fix(sql_parse): Support Jinja format() filter when extracting latest[_sub]_partition (#28117)
(cherry picked from commit 2f11f66167)
This commit is contained in:
committed by
Michael S. Molina
parent
ee92eeb605
commit
149d7eea00
@@ -1104,7 +1104,7 @@ def extract_tables_from_jinja_sql(sql: str, database: Database) -> set[Table]:
|
||||
Table(
|
||||
*[
|
||||
remove_quotes(part.strip())
|
||||
for part in node.args[0].value.split(".")[::-1]
|
||||
for part in node.args[0].as_const().split(".")[::-1]
|
||||
if len(node.args) == 1
|
||||
]
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user