Skip to content
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

Support async query #41

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

xuliangs
Copy link

Add support to handle async query response. For requests that take more than 45 secs to complete, Snowflake returns a get_request_url so that the actual query response need to be polled via GET requests. Each poll request can take up to 45 secs till the next poll starts.

Used a older version of snowflake-connector-nodejs - libs/connection/statement.js as a reference for is_async method, a query is in progress if its response code is 33333 or 33334

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant