SnowflakeOperatorAsync executes queries in parallel #240
Replies: 4 comments 3 replies
-
Agree with you @ReadytoRocc , I think this is a great idea to rename the current version of But we need to further analyse the feasibility of executing multiple SQL statements in a single request, @bharanidharan14 can you take a look in the next sprint? |
Beta Was this translation helpful? Give feedback.
-
This is addressed in #478 |
Beta Was this translation helpful? Give feedback.
-
Looks like it is addressed in #478 . Closing this discussion. |
Beta Was this translation helpful? Give feedback.
-
Hi @pankajkoti, has this part been addressed?
Does the SnowflakeOperatorAsync now provide the ability to submit queries sequentially? |
Beta Was this translation helpful? Give feedback.
-
Currently, the
SnowflakeOperatorAsync
operator submits queries in parallel. If the queries require order within the session (i.e.CREATE
->INSERT INTO
), there is no guarantee that the first query finishes successfully before the next query is run. Sequentiality is guaranteed by theSnowflakeOperator
, as the queries are run synchronously in the same process.I believe we should rename the
SnowflakeOperatorAsync
to theSnowflakeParallelQueryOperatorAsync
to denote the behavior of this operator, and document the differences.As a note, the Snow SQL API allows for submitting multiple SQL statements in a single request. In combination with
aiohttp
, this may be an option for creating aSnowflakeOperatorAsync
that matches the query submission behavior of theSnowflakeOperator
.Beta Was this translation helpful? Give feedback.
All reactions