SQLExecuteQueryOperator
Common SQLExecutes SQL code in a specific database :param sql: the SQL code or string pointing to a template file to be executed (templated). File must have a ‘.sql’ extensions.
Access Instructions
Install the Common SQL provider package into your Airflow environment.
Import the module into your DAG file and instantiate it with your desired params.
Parameters
Documentation
Executes SQL code in a specific database :param sql: the SQL code or string pointing to a template file to be executed (templated). File must have a ‘.sql’ extensions.
When implementing a specific Operator, you can also implement _process_output method in the hook to perform additional processing of values returned by the DB Hook of yours. For example, you can join description retrieved from the cursors of your statements with returned values, or save the output of your operator to a file.
See also
For more information on how to use this operator, take a look at the guide: Execute SQL query