-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement Async Snowflake SQL API Operator #478
Conversation
Codecov Report
@@ Coverage Diff @@
## main #478 +/- ##
=======================================
Coverage 98.21% 98.21%
=======================================
Files 70 70
Lines 3744 3744
=======================================
Hits 3677 3677
Misses 67 67 Continue to review full report at Codecov.
|
1a84b0d
to
a06fc94
Compare
3fbb09a
to
4565244
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-
On first glance, the conventions of the class names should change to use Camel case.(SQL should change to Sql, API to Api)
SnowflakeSQLOperatorAsync
SnowflakeSQLAPITrigger
SnowflakeSQLAPIHookAsync -
What about naming this operator as SnowflakeOperatorAsync and renaming the earlier one as SnowflakeParallel* , as this Operator is better in terms of submitting sequential multiple queries?
Yes I guess we should rename this operator as SnowflakeOperatorAsync and need to change the old one as SnowflakeParallelOperator |
Lets do this change so that there wont be DAG facing changes for the user. I also think that we can deprecate the old one, and no need of parallel operator as this operator already contains all the functionality needed |
@bharanidharan14 Please consider documenting example DAG too. |
459916c
to
d49271a
Compare
Added Documentation for the example DAG |
93d8334
to
a207bab
Compare
5d4adb7
to
303265e
Compare
5a794db
to
32cd057
Compare
@pankajastro Addressed your review comments please take a look at it |
Implement Async Snowflake SQL API Operator Implement Async Snowflake SQL API Operator Implement Async Snowflake SQL API Operator Covered few more details about the operator and snowflake SQL API in doc string Implement Async Snowflake SQL API Operator Implement Async Snowflake SQL API Operator Implement Async Snowflake SQL API Operator Implement Async Snowflake SQL API Operator Implement Async Snowflake SQL API Operator Implement Async Snowflake SQL API Operator Implemented Async Snowflake SQL API Operator to support multiple SQL statements sequentially, which is the behavior of the SnowflakeOperator, the Snowflake SQL API allows for submitting multiple SQL statements in a single request. In combination with aiohttp, this may be an option for creating a SnowflakeSQLOperatorAsync that matches the query submission behavior of the SnowflakeOperator. Test case Add Test case Added Test case for Snowflake SQL API Trigger and Operator Test case fix Test case fix Skip code coverage for import Doc fix Add example DAG Documenting - Added Example DAG Documentation - Changed the class name to camel case Docs FIx Fix doc Update Doc Fix doc string Move SnowflakeSqlApiOperatorAsync to snowflake.py file Import fix Co-Authored-By: Rajath <92459020+rajaths010494@users.noreply.github.com>
5f6ee82
to
f30cc9e
Compare
@pankajastro @phanikumv @pankajkoti @rajaths010494 Please review this PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Implemented Async Snowflake SQL API Operator to support multiple SQL statements sequentially, which is the behavior of the SnowflakeOperator, the Snowflake SQL API allows for submitting multiple SQL statements in a single request. In combination with aiohttp, this may be an option for creating a SnowflakeSQLOperatorAsync that matches the query submission behavior of the SnowflakeOperator.
Documentation
https://www.notion.so/astronomerio/Snowflake-Async-Operators-2a62522b1f534a02bde099b104216c41
closes: #477