You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Used a docker-compose to run astro-runtime:5.0.8 images.
What happened
The .sql file read by /usr/local/lib/python3.9/site-packages/openlineage/airflow/extractors/postgres_extractor.py.
And sent to /usr/local/lib/python3.9/site-packages/openlineage/common/sql/__init__.py for parsing.
Resulted in
The same has been observed by an Astronomer Customer over SnowflakeOperator.
I guess this would happen everywhere as the base sql parsing via openlineage.
What you think should happen instead
No response
How to reproduce
Created a stored procedure on Postgres as:
CREATE OR REPLACE PROCEDURE display_message (INOUT msg TEXT)
AS $$
begin
RAISE NOTICE 'Procedure Parameter: %', msg ;
end ;
$$
language plpgsql;
Create an sql file(i.e., include/call-sproc1.sql) as:
-- call-sproc1
CALL display_message('ola!');
And a dag file(i.e., dags/stored_proc.py) as:
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-sproc1.sql",
postgres_conn_id='metadata'
)
Where conn_id metadata points to the Postgres database with stored procedure is created.
Apache Airflow Provider(s)
common-sql
Versions of Apache Airflow Providers
Apache Airflow version
2.3.4
Operating System
PRETTY_NAME="Debian GNU/Linux 11 (bullseye)" NAME="Debian GNU/Linux" VERSION_ID="11" VERSION="11 (bullseye)" VERSION_CODENAME=bullseye ID=debian
Deployment
Astronomer
Deployment details
Used a docker-compose to run
astro-runtime:5.0.8
images.What happened
The .sql file read by
/usr/local/lib/python3.9/site-packages/openlineage/airflow/extractors/postgres_extractor.py
.And sent to
/usr/local/lib/python3.9/site-packages/openlineage/common/sql/__init__.py
for parsing.Resulted in
The same has been observed by an Astronomer Customer over SnowflakeOperator.
I guess this would happen everywhere as the base sql parsing via openlineage.
What you think should happen instead
No response
How to reproduce
Created a stored procedure on Postgres as:
Create an sql file(i.e.,
include/call-sproc1.sql
) as:And a dag file(i.e.,
dags/stored_proc.py
) as:Where conn_id
metadata
points to the Postgres database with stored procedure is created.While running the dag got the log : dag_id=postgres_proc_run_id=manual__2022-09-08T11 44 18.018924+00 00_task_id=task_1_attempt=2.log
Anything else
No response
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: