You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2019/06/21 15:45: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=16869615#comment-16869615 ] 

ASF GitHub Bot commented on AIRFLOW-3362:
-----------------------------------------

ashb commented on pull request #4900: [AIRFLOW-3362] [WIP]Template to support jinja2 native python types
URL: https://github.com/apache/airflow/pull/4900
 
 
   
 
----------------------------------------------------------------
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:
users@infra.apache.org


> 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
>            Assignee: Ryan Yuan
>            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)