potiuk commented on issue #28280:
URL: https://github.com/apache/airflow/issues/28280#issuecomment-1362549266

   > Perhaps a better solution would be to allos _per-field_ specification. One 
simple way would be to accept passing a `jinja2.Template` to a templated field 
directly, e.g.
   > 
   > ```python
   > BashOperator(
   >     bash_command=jinja2.Template("...", newline_sequence="\r"),
   > )
   > ```
   
   I like it, but we have to be careful about environment there and replace it. 
The default Template environment is "ad_hoc" one but we are using by default 
sanitized (and slightly customized) "Sandboxed" environment or "Native" - 
depending on the 'render_template_as_native_object' so we should make sure the 
environment from that template is not use directly I think.


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to