airflow.providers.vertica.operators.vertica

Module Contents

Classes

VerticaOperator

Executes sql code in a specific Vertica database.

class airflow.providers.vertica.operators.vertica.VerticaOperator(*, sql: Union[str, List[str]], vertica_conn_id: str = 'vertica_default', **kwargs: Any)[source]

Bases: airflow.models.BaseOperator

Executes sql code in a specific Vertica database.

Parameters
  • vertica_conn_id (str) -- reference to a specific Vertica database

  • sql (Can receive a str representing a sql statement, a list of str (sql statements), or reference to a template file. Template reference are recognized by str ending in '.sql') -- the sql code to be executed. (templated)

template_fields :Sequence[str] = ['sql'][source]
template_ext :Sequence[str] = ['.sql'][source]
ui_color = #b4e0ff[source]
execute(self, context: airflow.utils.context.Context) None[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?