kaxil commented on issue #26234:
URL: https://github.com/apache/airflow/issues/26234#issuecomment-1240669476

   I don’t think it is related to `template_ext`:
   
   Did you try with inline SQL instead of that in separate file?
   
   
   ```python
   from airflow import DAG
   from airflow.providers.postgres.operators.postgres import PostgresOperator
   from datetime import datetime
   
   with DAG('postgres_proc', 
start_date=datetime(2022,9,1),schedule_interval=None, 
template_searchpath='/usr/local/airflow/include') as d:
       task1 = PostgresOperator(
           task_id="task_1",
           sql="CALL display_message('ola!');",
           postgres_conn_id='metadata'
       )
   ```


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