SnowflakeValueCheckOperator

Snowflake

Performs a simple check using sql code against a specified value, within a certain level of tolerance.

View on GitHub

Last Updated: Mar. 10, 2023

Access Instructions

Install the Snowflake provider package into your Airflow environment.

Import the module into your DAG file and instantiate it with your desired params.

Parameters

sqlRequiredthe sql to be executed
pass_valueRequiredthe value to check against
tolerance(optional) the tolerance allowed to accept the query as passing
snowflake_conn_idReference to Snowflake connection id
autocommitif True, each command is automatically committed. (default value: True)
parameters(optional) the parameters to render the SQL query with.
warehousename of warehouse (will overwrite any warehouse defined in the connection’s extra JSON)
databasename of database (will overwrite database defined in connection)
schemaname of schema (will overwrite schema defined in connection)
rolename of role (will overwrite any role defined in connection’s extra JSON)
authenticatorauthenticator for Snowflake. ‘snowflake’ (default) to use the internal Snowflake authenticator ‘externalbrowser’ to authenticate using your web browser and Okta, ADFS or any other SAML 2.0-compliant identify provider (IdP) that has been defined for your account ‘https://.okta.com’ to authenticate through native Okta.
session_parametersYou can set session-level parameters at the time you connect to Snowflake

Documentation

Performs a simple check using sql code against a specified value, within a certain level of tolerance.

Was this page helpful?