airflow-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ramandumcs@gmail.com <ramandu...@gmail.com>
Subject Template for Operator' Json Argument
Date Sat, 05 May 2018 08:42:50 GMT
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 airflow.exceptions.AirflowException: Type '<type 'int'>' used for parameter 'json[number]'
is not supported for templating.

So is this possible to have both string and integer in templatised field.

Thanks,
Raman Gupta

Mime
View raw message