betodealmeida commented on code in PR #33568:
URL: https://github.com/apache/superset/pull/33568#discussion_r2115916798
##########
superset/sql/parse.py:
##########
@@ -1421,10 +1406,12 @@ def extract_tables_from_jinja_sql(sql: str, database:
Database) -> set[Table]:
node.data = "NULL"
# re-render template back into a string
- rendered_template = Template(template).render(processor.get_context())
+ code = processor.env.compile(ast)
+ template = Template.from_code(processor.env, code,
globals=processor.env.globals)
+ rendered_sql = template.render(processor.get_context())
Review Comment:
Made sure to include the fix from
https://github.com/apache/superset/pull/33596.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]