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: jsonwriter should checkpoint by default #2993

Merged

Conversation

jusjosj
Copy link
Contributor

@jusjosj jusjosj commented Nov 13, 2024

Description

This is a fix aimed to enable jsonwriter to checkpoint in accordance with delta.checkpointInterval. It changes the default commitbuilder to set a post_commit_hook so that checkpointing will be done by default. Potentially we could also expose CommitProperties as an argument to flush_and_commit, but that would require a change to the function signature and would be a breaking change.

Related Issue(s)

This is a fix aimed to enable jsonwriter to checkpoint in accordance
with delta.checkpointInterval.  It changes the default commitbuilder to
set a post_commit_hook so that checkpointing will be done by default.
Potentially we could also expose CommitProperties as an argument to
flush_and_commit, but that would require a change to the function
signature and would be a breaking change.

Signed-off-by: Justin Jossick <[email protected]>
@github-actions github-actions bot added the binding/rust Issues for the Rust crate label Nov 13, 2024
Copy link

codecov bot commented Nov 16, 2024

Codecov Report

Attention: Patch coverage is 97.91667% with 1 line in your changes missing coverage. Please review.

Project coverage is 72.37%. Comparing base (9982e9c) to head (db3ce41).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
crates/core/src/writer/json.rs 97.87% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2993      +/-   ##
==========================================
+ Coverage   72.32%   72.37%   +0.05%     
==========================================
  Files         128      128              
  Lines       40420    40467      +47     
  Branches    40420    40467      +47     
==========================================
+ Hits        29233    29289      +56     
  Misses       9308     9308              
+ Partials     1879     1870       -9     

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

@rtyler rtyler added this pull request to the merge queue Nov 16, 2024
Merged via the queue into delta-io:main with commit d4f18b3 Nov 16, 2024
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
binding/rust Issues for the Rust crate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

JsonWriter does not respect delta.checkpointInterval
2 participants