forked from apache/airflow
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor SQL/BigQuery/Qubole/Druid Check operators (apache#12677)
closes: apache#10271 related: apache#9844 apache#14184 This PR refactor SQL/BigQuery Check operators to reduce duplicated code: create BaseSQLOperator: it standardizes how some of the generic SQL operators retrieve DB hook with the .get_db_hook() method Add a database kwarg *CheckOperators for a consistent interface create _BigQueryDbHookMixin to standardize the .get_db_hook() method for BigQuery create _QuboleCheckOperatorMixin to remove duplicate code replace <class-name>.template_fields with _get_template_fields in __getattribute__ to avoid hard coding class name, and reduce duplicate code remove and deprecate DruidCheckOperator the same functionality can be achieved by SQLCheckOperator - the deprecation method is the same for PrestoCheckOperator Misc: Fix docstrings Update deprecated Operator name and import path Remove unnecessary if statements check parameters in SQLBranchOperator
- Loading branch information
1 parent
aa28e4e
commit 33214d9
Showing
17 changed files
with
353 additions
and
431 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.