ryanyuan commented on a change in pull request #4900: [AIRFLOW-3362] [WIP]Template to support jinja2 native python types URL: https://github.com/apache/airflow/pull/4900#discussion_r267704090
########## File path: airflow/lineage/datasets.py ########## @@ -18,7 +18,10 @@ # under the License. import six -from jinja2 import Environment +try: + from jinja2.nativetypes import NativeEnvironment as Environment Review comment: > We should just update the minimum version of Jinja we require instead. Updating the minimum version of Jinja cannot resolve the #4770 (list as templated field issue). Referring to your suggestion in that PR, we can either import jinja2.NativeEnvironment or convert specific templated fields into list type in those operators. ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
