andrusha / snowflake-rs

Snowflake API libraries for Rust
Apache License 2.0
31 stars 26 forks source link

Update Error handling & support async query #40

Closed xuliangs closed 7 months ago

xuliangs commented 7 months ago

Improve error handling

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

xuliangs commented 7 months ago

Reopen later with only the async query support