airflow.providers.trino.operators.trino¶
This module contains the Trino operator.
Module Contents¶
Classes¶
Executes sql code using a specific Trino query Engine. |
- class airflow.providers.trino.operators.trino.TrinoOperator(*, sql, trino_conn_id='trino_default', autocommit=False, parameters=None, handler=None, **kwargs)[source]¶
Bases:
airflow.models.BaseOperatorExecutes sql code using a specific Trino query Engine.
See also
For more information on how to use this operator, take a look at the guide: TrinoOperator
- Parameters
sql (str | list[str]) – the SQL code to be executed as a single string, or a list of str (sql statements), or a reference to a template file.
trino_conn_id (str) – id of the connection config for the target Trino environment
autocommit (bool) – What to set the connection’s autocommit setting to before executing the query
handler (Callable | None) – The result handler which is called with the result of each statement.
parameters (tuple | None) – (optional) the parameters to render the SQL query with.