-
Couldn't load subscription status.
- Fork 118
[wip][ffi] transaction and append data FFI #550
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
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #550 +/- ##
==========================================
- Coverage 83.45% 83.05% -0.40%
==========================================
Files 74 74
Lines 16877 17009 +132
Branches 16877 17009 +132
==========================================
+ Hits 14084 14127 +43
- Misses 2135 2225 +90
+ Partials 658 657 -1 ☔ View full report in Codecov by Sentry. |
|
|
||
| #[cfg(feature = "default-engine")] | ||
| #[no_mangle] | ||
| pub unsafe extern "C" fn get_engine_data( |
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.
Nit: Seems we're passing in ownership. Should we call this into_engine_data?
|
closing in favor of #962 |
This PR is a retake of #550 ## What changes are proposed in this pull request? This PR implements the ffi functions required to do appends. The main difference over #550 is how it's tested: instead of using a C based example we now opt for a rust-based test that is able to re-used various testing-related utility functions that are used in the kernel tests. To do this cleanly, i've moved several functions over to the test-utils crate. ## This PR affects the following public APIs - Adds new ffi functions related to appends / transactions ## How was this change tested? Using the `test_basic_append` in `ffi/src/transaction/mod.rs`. ## Main points to comment on for reviewers of Draft PR: I would like to draw the reviewer's attention to: - the concept of testing new ffi functionality through rust tests instead of a C example program - usage of `tempfile::tempdir` to create a tmp directory for test data during the test - some outstanding `TODO`s in the `test_basic_append` test Once the current approach is approved by reviewers, I can follow up with more testing: - the write schema - appending to a partitioned table
This PR is a retake of delta-io#550 ## What changes are proposed in this pull request? This PR implements the ffi functions required to do appends. The main difference over delta-io#550 is how it's tested: instead of using a C based example we now opt for a rust-based test that is able to re-used various testing-related utility functions that are used in the kernel tests. To do this cleanly, i've moved several functions over to the test-utils crate. ## This PR affects the following public APIs - Adds new ffi functions related to appends / transactions ## How was this change tested? Using the `test_basic_append` in `ffi/src/transaction/mod.rs`. ## Main points to comment on for reviewers of Draft PR: I would like to draw the reviewer's attention to: - the concept of testing new ffi functionality through rust tests instead of a C example program - usage of `tempfile::tempdir` to create a tmp directory for test data during the test - some outstanding `TODO`s in the `test_basic_append` test Once the current approach is approved by reviewers, I can follow up with more testing: - the write schema - appending to a partitioned table
What changes are proposed in this pull request?
Transactionincluding creation, adding commit info, adding write metadata, and committingThis PR affects the following public APIs
TODO
How was this change tested?
write_table