-
Notifications
You must be signed in to change notification settings - Fork 16.5k
Closed
Labels
area:coregood first issuekind:bugThis is a clearly a bugThis is a clearly a bugprovider:common-sqlprovider:oracle
Description
Apache Airflow version
2.10.0
If "Other Airflow 2 version" selected, which one?
2
What happened?
SQLTableCheckOperator operator generate SQL with table "AS" alias and table alias with "AS" not working in Oracle database.
Needs to fix sql_check_template depends on connection type remove "AS".
What you think should happen instead?
No response
How to reproduce
from airflow.providers.common.sql.operators.sql import SQLTableCheckOperator
SQLTableCheckOperator(
task_id="your_task",
table="yout_table",
checks={
"row_count_check": {"check_statement": "COUNT(*) = 1000"} },
partition_clause="BALANCE_DATE = to_date('2024-11-11','yyyy-mm-dd')",
conn_id=connection_should_be_oracle_db
)Operating System
ubuntu
Versions of Apache Airflow Providers
apache-airflow-providers-common-sql==1.7.2
Deployment
Official Apache Airflow Helm Chart
Deployment details
No response
Anything else?
No response
Are you willing to submit PR?
- Yes I am willing to submit a PR!
Code of Conduct
- I agree to follow this project's Code of Conduct
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area:coregood first issuekind:bugThis is a clearly a bugThis is a clearly a bugprovider:common-sqlprovider:oracle