-
Notifications
You must be signed in to change notification settings - Fork 84
feat: add timetravel by version number #1044
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
base: main
Are you sure you want to change the base?
feat: add timetravel by version number #1044
Conversation
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.
added a small nit. but otherwise, it looks good to me!
907cbc3
to
f5e815b
Compare
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, maybe just with the type change if it works. thanks!
pub unsafe extern "C" fn snapshot_at_version( | ||
path: KernelStringSlice, | ||
engine: Handle<SharedExternEngine>, | ||
version: u64, |
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.
do things work if we make this version: Version
(i.e. is cbindgen clever enough to translate that?)
I'd prefer to have this change too if we ever change the type for Version
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1044 +/- ##
==========================================
- Coverage 84.74% 83.93% -0.81%
==========================================
Files 92 92
Lines 23407 21097 -2310
Branches 23407 21097 -2310
==========================================
- Hits 19836 17708 -2128
+ Misses 2587 2473 -114
+ Partials 984 916 -68 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
What changes are proposed in this pull request?
snapshot_at_version
, which allows getting a specific snapshot of a table.While this is by itself not super useful to users yet (there's not really a way to list snapshots through the ffi), it will allow testing timetravel in the DuckDB delta extension. A follow up to this PR could be to add:
This PR affects the following public APIs
snapshot_at_version
added to the ffiHow was this change tested?
using a few extra lines that are added to the existing snapshot ffi function tests.