You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "rawwar (via GitHub)" <gi...@apache.org> on 2024/10/09 05:16:47 UTC
Re: [I] ExternalPythonOperator Jinja template rendering exception when op_kwargs dictionary value contain special characters [airflow]
rawwar commented on issue #39584:
URL: https://github.com/apache/airflow/issues/39584#issuecomment-2401335394
@potiuk, I completely forgot about this issue and just started working on it. But, I feel this is definitely not a bug, nor require mention of whether to use Jinja templating specifically for this Operator. PthonOperator has template_fields set to `("templates_dict", "op_args", "op_kwargs")`
https://github.com/apache/airflow/blob/f1664674d859a262e93fb3110557a1e71138ca8b/airflow/operators/python.py#L193
So, any operator extending PythonOperator expects template_fields to follow Jinja syntax rules. In the documentation, we do not explicitly mention the list of template fields for any operator. A thought: we just mentioned that templating is possible. L ke [here](https://airflow.apache.org/docs/apache-airflow/stable/howto/operator/python.html#templating)
Is it worth adding all possible template fields to all Operator documentation?
--
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.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org