igvog opened a new issue, #44135:
URL: https://github.com/apache/airflow/issues/44135
### Apache Airflow version
2.10.3
### 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?
- [X] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
--
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]