load_with_datetime(datetime_string) throw error message when delta table is created for more than 60 days(twice the default value of logRetentionDuration) #521
Labels
bug
Something isn't working
Environment
Delta-rs version:
0.5.4
Binding:
python 3.9.7
Environment:
Bug
What happened:
load_with_datetime(datetime_string)
function always throws error message when the specific detla table is created for more than 60 days.What you expected to happen:
load the corresponding version and don't throw error message.
How to reproduce it:
create an delta table with specific
logRetentionDuration
value(small enough), and useload_with_datetime()
function.More details:
I believe it was because this method performs a binary search on all delta transaction logs. in the above case, the latest version no is 469, then it tries to get the timestamp of version 234 at the first time of the loop. but the transaction log of version 234 has been cleaned up(earlier than 30 days), so it throws an error message.
In this file, https://github.com/delta-io/delta-rs/blob/main/rust/src/delta.rs#L1223-L1261 line no 1240 will throw error message when the above conditions are met.
The text was updated successfully, but these errors were encountered: