-
Notifications
You must be signed in to change notification settings - Fork 457
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: refresh snapshot after vacuuming logs #3252
Conversation
62f9604
to
ad70cce
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3252 +/- ##
==========================================
- Coverage 72.18% 72.08% -0.10%
==========================================
Files 143 143
Lines 45629 45699 +70
Branches 45629 45699 +70
==========================================
+ Hits 32936 32944 +8
- Misses 10621 10682 +61
- Partials 2072 2073 +1 ☔ View full report in Codecov by Sentry. |
ad70cce
to
7d4a297
Compare
fn write( | ||
&mut self, | ||
py: Python, | ||
data: PyArrowType<ArrowArrayStreamReader>, | ||
mode: String, | ||
schema_mode: Option<String>, | ||
partition_by: Option<Vec<String>>, | ||
predicate: Option<String>, | ||
target_file_size: Option<usize>, | ||
name: Option<String>, | ||
description: Option<String>, | ||
configuration: Option<HashMap<String, Option<String>>>, | ||
writer_properties: Option<PyWriterProperties>, | ||
commit_properties: Option<PyCommitProperties>, | ||
post_commithook_properties: Option<PyPostCommitHookProperties>, | ||
) -> PyResult<()> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This function body looks really close to the write_to_deltalake
function, can the code in write_to_deltalake
simply defer to this function now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe, I'll investigate!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! agreeing with @rtyler thogh that we should see if we can cosolidate.
Reviewing our APIs is something to keep in ming for the 1.0 plan - no better time to break things :D.
7d4a297
to
ea025df
Compare
ea025df
to
2e2c022
Compare
Signed-off-by: Ion Koutsouris <[email protected]>
2e2c022
to
c2dd8e4
Compare
Description
As per @roeap suggestion to simply reload the table state after cleaning up logs so that we get a proper snapshot.
Introduces a write function on the DeltaTable which allows us to update the state after writing, which we couldn't do properly before.
Related Issue(s)
cleanup_expired_logs_for
#3057