Re: Template for Operator' Json Argument

2018-05-05 Thread Taylor Edmiston
I think you need to convert any non-str type into a string to render it in the template, i.e., just str(foo). https://github.com/apache/incubator-airflow/blob/1d3bb5470711a935b36b6a0ab4c7ec414d460d75/airflow/models.py#L2613 But in your template, if I understand correctly that you're building a

Template for Operator' Json Argument

2018-05-05 Thread ramandumcs
Hi All, We have implemented a custom operator which is derived from baseOperator. Custom operator takes a JSON argument. Some fields of this Json are string and others are integer. We need to templatised the string fields only and not integer. But on doing this we are getting the error