Module Contents

class airflow.contrib.operators.snowflake_operator.SnowflakeOperator(sql, snowflake_conn_id='snowflake_default', parameters=None, autocommit=True, warehouse=None, database=None, *args, **kwargs)[source]


Executes sql code in a Snowflake database

  • snowflake_conn_id (str) – reference to specific snowflake connection id

  • 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)

  • warehouse (str) – name of warehouse which overwrite defined one in connection

  • database (str) – name of database which overwrite defined one in connection

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