Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Support fetching chunks #3

Merged
merged 9 commits into from
Oct 9, 2023
Merged

Support fetching chunks #3

merged 9 commits into from
Oct 9, 2023

Conversation

xmakro
Copy link
Contributor

@xmakro xmakro commented Oct 4, 2023

This PR add support for fetching record batches which are served by Snowflake over multiple chunk files. In this case, snowflake sends some initial date via base64, and then a list of additional files via the resp.data.chunks field.

In addition, this PR fixes the authentication session header which was broken in a recent commit. This PR also makes the snowflake-rs API thread-safe so clients can issue concurrent requests.

@xmakro
Copy link
Contributor Author

xmakro commented Oct 4, 2023

Description updated, PTAL

@tbaums
Copy link
Contributor

tbaums commented Oct 5, 2023

@xmakro - Thanks! Taking a look now. Will get back to you shortly!

@andrusha andrusha self-requested a review October 7, 2023 10:21
snowflake-api/src/connection.rs Show resolved Hide resolved
snowflake-api/src/lib.rs Show resolved Hide resolved
snowflake-api/src/session.rs Show resolved Hide resolved
snowflake-api/src/session.rs Outdated Show resolved Hide resolved
@andrusha
Copy link
Owner

andrusha commented Oct 7, 2023

@xmakro could you merge with latest main so it runs CI on your PR?

@xmakro
Copy link
Contributor Author

xmakro commented Oct 7, 2023

Thanks for the comments! PTAL, the CI requires approval

@tbaums tbaums merged commit c128f19 into andrusha:main Oct 9, 2023
@tbaums
Copy link
Contributor

tbaums commented Oct 9, 2023

sorry! got click happy. @dmzmk said to merge before he went on holiday once you had a chance to review!

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

Successfully merging this pull request may close these issues.

3 participants