You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Ash Berlin-Taylor (JIRA)" <ji...@apache.org> on 2018/11/18 21:11:00 UTC
[jira] [Commented] (AIRFLOW-3362) Template to support jinja2 native
python types
[ https://issues.apache.org/jira/browse/AIRFLOW-3362?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16691041#comment-16691041 ]
Ash Berlin-Taylor commented on AIRFLOW-3362:
--------------------------------------------
Oh interesting! I think that is a fairly new feature in Jinja
> 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
> Priority: Major
>
> 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)