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(python): Address read_database issue with batched reads from Snowflake #17688

Merged
merged 1 commit into from
Jul 17, 2024

Conversation

alexander-beedie
Copy link
Collaborator

Closes #17404.

Fixes an issue with Arrow-aware drivers that don't support exact batch sizes (so far this only means Snowflake, but the fix is generic). Also allows the same drivers to skip setting a dummy "batch_size" value.

@alexander-beedie alexander-beedie changed the title fix(python): Address read_database issue with batched reads from Sn… fix(python): Address read_database issue with batched reads from Snowflake Jul 17, 2024
@github-actions github-actions bot added fix Bug fix python Related to Python Polars and removed title needs formatting labels Jul 17, 2024
Copy link

codecov bot commented Jul 17, 2024

Codecov Report

Attention: Patch coverage is 60.00000% with 4 lines in your changes missing coverage. Please review.

Project coverage is 80.47%. Comparing base (28d8196) to head (aa08d00).
Report is 6 commits behind head on main.

Files Patch % Lines
py-polars/polars/io/database/_executor.py 66.66% 2 Missing and 1 partial ⚠️
py-polars/polars/io/database/functions.py 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #17688      +/-   ##
==========================================
- Coverage   80.62%   80.47%   -0.16%     
==========================================
  Files        1490     1498       +8     
  Lines      195995   196459     +464     
  Branches     2789     2790       +1     
==========================================
+ Hits       158030   158098      +68     
- Misses      37452    37847     +395     
- Partials      513      514       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ritchie46 ritchie46 merged commit ebba58d into pola-rs:main Jul 17, 2024
14 checks passed
@alexander-beedie alexander-beedie deleted the read-snowflake-batches branch July 17, 2024 19:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix Bug fix python Related to Python Polars
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Iter_batches does not work with a Snowflake connection in pl.read_database()
2 participants