Skip to content

Conversation

@denimalpaca
Copy link
Contributor

Add SnowflakeThresholdOperator and BranchSnowflakeOperator

Two new operators are added for Snowflake to match the full suite of SQL Operators doing checks and branches. Slight updates to other Snowflake Operators included.

Add SnowflakeThresholdCheckOperator and BranchSnowflakeOperator
based on corresponding SQL operators. These operators round out
the functionality provided by SQL operators for Snowflake.
Additionally, the SnowflakeIntervalCheckOperator parameter list
is updated.
@boring-cyborg boring-cyborg bot added area:providers provider:snowflake Issues related to Snowflake provider labels Sep 21, 2021
return get_db_hook(self)


class BranchSnowflakeOperator(BranchSQLOperator):
Copy link
Contributor

@eladkal eladkal Sep 21, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't an approch like https://github.com/apache/airflow/pull/18394/files be better?
Saves the trouble of setting up unique classes specifically for Snowflake

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like this solution a lot, would also handle all the other cases (BigQuery specifically, which this and my last PR was based on). Seems like it would make more sense for me to open a separate PR for that solution, though.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@eladkal
Copy link
Contributor

eladkal commented Oct 7, 2021

Closed in favor of #18718

@eladkal eladkal closed this Oct 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:providers provider:snowflake Issues related to Snowflake provider

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants