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

fix: make snowflake connector async #2032

Merged
merged 2 commits into from
Sep 14, 2023
Merged

Conversation

abcpro1
Copy link
Contributor

@abcpro1 abcpro1 commented Sep 13, 2023

Make the the blocking snowflake connector async in the most straightforward way, which is to move blocking code to a separate thread with spawn_blocking.

Alternatives considered to the current snowflake client in use:

  • odbc-api: async support is limited. connections are still blocking, as well as getting schemas.
  • snowflake-api: relies on undocumented snowflake apis, which may or may not break in the future.
  • snowflake-connector: still "Under heavy development".

@abcpro1 abcpro1 force-pushed the snowflake-async branch 4 times, most recently from 001e845 to bf6907c Compare September 13, 2023 22:24
Make the the blocking snowflake connector `async` in the most straightforward way, which is `spawn_blocking`.
There is no need split them anymore as the snowflake connector is now compliant with Send.
Copy link
Contributor

@chubei chubei left a comment

Choose a reason for hiding this comment

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

Thanks for fixing the trait!

@chubei chubei added this pull request to the merge queue Sep 14, 2023
Merged via the queue into getdozer:main with commit 5952a0b Sep 14, 2023
14 checks passed
@chubei chubei deleted the snowflake-async branch September 14, 2023 04:55
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.

3 participants