kameshkotwani commented on issue #27077:
URL: https://github.com/apache/airflow/issues/27077#issuecomment-1280033652

   I am trying to create a filename which is dynamic based on its creation 
time, so I want to use Jinja Template to specify the filename  dynamically in 
the `sql` parameter, for example I create a file `queries1215.sql`  (here 12 is 
hour, 15 is date and it contains multiple queries and saved as a file) using 
PythonOperator, and the file name changes based on time and date, this works in 
BashOperator as when deleting the file as seen in the above code, but when same 
logic is being used in PostgresOperator, template is not rendering. I am not 
able to achieve the desired result due to that. Is there any other way we can 
do this where the filename is dynamic??


-- 
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