-
Notifications
You must be signed in to change notification settings - Fork 39
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
move transaction
module into actions/
and rename to set_transaction
#386
move transaction
module into actions/
and rename to set_transaction
#386
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #386 +/- ##
=======================================
Coverage 77.68% 77.69%
=======================================
Files 49 49
Lines 10084 10087 +3
Branches 10084 10087 +3
=======================================
+ Hits 7834 7837 +3
Misses 1805 1805
Partials 445 445 ☔ View full report in Codecov by Sentry. |
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.
mostly lgtm, just a couple small nits
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. This brings the name of the "transaction" ("txn"
) Delta protocol action to be en-par with how Delta-Kernel-API and Delta-Spark refer to it as in the code, a SetTransaction
. That name is a signification improvement over "Transaction", and the unification between the kernels is also great.
Co-authored-by: Nick Lanham <[email protected]>
Co-authored-by: Nick Lanham <[email protected]>
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.
One last thing I noticed that needs to be renamed. You'll also need to fix the name in inspect-table/src/main.rs
due to #190
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!
…tion (#370) This PR does 4 main things: 1. ~reorganize `transaction.rs` so that the transaction action is now moved to actions module~ **EDIT:** now in #386 1. new `Transaction` API which includes: a. `Table.new_transaction()` to create a new transaction from the latest snapshot of the table b. `Transaction.with_commit_info(engine_commit_info: Box<dyn EngineData>)` to add single-row commit info in the form of a `map<string, string>`. required to commit. c. `Transaction.with_operation(operation: String)` to set the operation name of the transaction (persisted in commit info) d. `Transaction.commit() // consumes transaction` to commit the transaction to the log (currently only supporting committing the commit info) 1. new engine API: `write_json_file(impl Iterator<Item = Box<dyn EngineData>>)` (and a default engine implementation for this) 1. new integration test suite `write.rs` to house many of our write tests as it's implemented resolves #378 --------- Co-authored-by: Ryan Johnson <[email protected]> Co-authored-by: Nick Lanham <[email protected]>
Prefactor for write-path work. this does three things
set_transaction
andTransaction
toSetTransaction
commitInfo
to actions schema and define a commit info object which (for now) just includes kernel version