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

feat(python): Support querying specific snapshot by id in scan_iceberg #19388

Merged
merged 1 commit into from
Oct 23, 2024

Conversation

corleyma
Copy link
Contributor

This PR adds support for querying historical table snapshots when using scan_iceberg by adding an optional "snapshot_id" argument that is propagated to the underlying pyiceberg DataScan.

@corleyma corleyma changed the title feat(python): support specifying snapshot id in scan_iceberg feat(python): Support specifying snapshot id in scan_iceberg Oct 22, 2024
@github-actions github-actions bot added enhancement New feature or an improvement of an existing feature python Related to Python Polars and removed title needs formatting labels Oct 22, 2024
@corleyma corleyma changed the title feat(python): Support specifying snapshot id in scan_iceberg feat(python): Support querying specific snapshot by id in scan_iceberg Oct 22, 2024
Copy link

codecov bot commented Oct 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 80.20%. Comparing base (1d210ab) to head (8d6429a).
Report is 17 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #19388      +/-   ##
==========================================
- Coverage   80.21%   80.20%   -0.02%     
==========================================
  Files        1523     1527       +4     
  Lines      210096   210346     +250     
  Branches     2432     2432              
==========================================
+ Hits       168526   168701     +175     
- Misses      41014    41091      +77     
+ Partials      556      554       -2     

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

@ritchie46
Copy link
Member

@alexander-beedie could you review this one?

Copy link
Collaborator

@alexander-beedie alexander-beedie left a comment

Choose a reason for hiding this comment

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

Yup, definitely a useful addition; the integration looks good/clean to me.
@corleyma, thanks for this one - bonus points for providing good unit tests 😎

@alexander-beedie alexander-beedie merged commit ba35d07 into pola-rs:main Oct 23, 2024
15 of 16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or an improvement of an existing feature python Related to Python Polars
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants