You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2022/09/08 12:45:54 UTC
[GitHub] [airflow] kaxil commented on issue #26234: template_ext '.sql' failing to parse CALL statement
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org