git.net

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Template for Operator' Json Argument


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