airflow.providers.apache.drill.operators.drill

Module Contents

Classes

DrillOperator

Executes the provided SQL in the identified Drill environment.

class airflow.providers.apache.drill.operators.drill.DrillOperator(*, sql, drill_conn_id='drill_default', parameters=None, **kwargs)[source]

Bases: airflow.models.BaseOperator

Executes the provided SQL in the identified Drill environment.

See also

For more information on how to use this operator, take a look at the guide: DrillOperator

Parameters
  • sql (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. Template references are recognized by str ending in ‘.sql’

  • drill_conn_id (str) – id of the connection config for the target Drill environment

  • parameters (Optional[Union[Mapping, Iterable]]) – (optional) the parameters to render the SQL query with.

template_fields :Sequence[str] = ['sql'][source]
template_fields_renderers[source]
template_ext :Sequence[str] = ['.sql'][source]
ui_color = #ededed[source]
execute(self, context)[source]

This is the main method to derive when creating an operator. Context is the same dictionary used as when rendering jinja templates.

Refer to get_template_context for more context.

Was this entry helpful?