You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Duan Shiqiang (JIRA)" <ji...@apache.org> on 2018/11/18 13:50:00 UTC
[jira] [Created] (AIRFLOW-3362) Template to support jinja2 native
python types
Duan Shiqiang created AIRFLOW-3362:
--------------------------------------
Summary: Template to support jinja2 native python types
Key: AIRFLOW-3362
URL: https://issues.apache.org/jira/browse/AIRFLOW-3362
Project: Apache Airflow
Issue Type: Improvement
Components: core, DAG
Reporter: Duan Shiqiang
Airflow latest (1.10.x)'s template can only render into string which is fine most of the times, but it would be better to support render into python types.
It can be very useful if the template system can support render into native python types like list, dictionary, etc. Especially when using xcom to pass some values between operators.
Jinja2 supports this feature from 2.10, more info can found here: http://jinja.pocoo.org/docs/2.10/nativetypes/
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)