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

Upgraded gosnowflake as v1.8.0 has an issue with arrow batches #4408

Merged
merged 6 commits into from
Mar 25, 2024

Conversation

esevastyanov
Copy link
Contributor

@esevastyanov esevastyanov commented Mar 22, 2024

@esevastyanov esevastyanov changed the title Reverted gosnowflake as v1.8.0 has an issue with arrow batches Updagraded gosnowflake as v1.8.0 has an issue with arrow batches Mar 22, 2024
Copy link
Contributor

@begelundmuller begelundmuller left a comment

Choose a reason for hiding this comment

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

Looking at this, it seems like there's an error scenario where the writeGrp fails early (e.g. because of missing file permissions or a storage limit error), but the fetchGrp keeps downloading for a long time.

Similarly, this PR removes the ctx check in the writeGrp goroutine, which might lead to a lot of redundant writing if the fetchGrp fails.

I think this can be solved by using a single errgroup to coordinate all the goroutines (and having a if ctx.Err() != nil check inside the for-loop of the writing goroutine).

@begelundmuller begelundmuller merged commit 8c5168c into main Mar 25, 2024
3 of 4 checks passed
@begelundmuller begelundmuller deleted the revert-snowflake branch March 25, 2024 16:10
nishantmonu51 pushed a commit that referenced this pull request Mar 25, 2024
* Reverted gosnowflake as v1.8.0 has an issue with arrow batches

* Upgraded to a specific gosnowflake commit that fixes the issue

* Fixed an issue causing writeGrp to stop early with "context cancelled"

* Described the reason behind the version upgrade

* Simplified by moving fetch and write into a single goroutine
@AndrewRTsao AndrewRTsao changed the title Updagraded gosnowflake as v1.8.0 has an issue with arrow batches Upgraded gosnowflake as v1.8.0 has an issue with arrow batches Mar 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants