Repository navigation
feat(transaction): implement the Transaction V2 action vocabulary - #8644
Conversation
247689d to
fd6ecc6
Compare
fd6ecc6 to
ac9c4dd
Compare
ac9c4dd to
2076ce5
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
0d8addd to
f1b36fe
Compare
22deb00 to
83c943b
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
eeb9508 to
6464ad5
Compare
The action path returned before the final Blob nesting admission added in #10612, so a ConfigUpdate could publish a Blob v2 field nested in a Map, which scans cannot read. Run the same check after assembling the action manifest. Co-Authored-By: Claude Opus 5.5 <[email protected]>
| ))); | ||
| } | ||
| } | ||
| let bound_fields = file.fields.clone(); |
There was a problem hiding this comment.
looks like the add datafile action should also invalidate the affected index coverage when data_change is true? for instance, if we're adding data to a nullable column, the old index coverage stays around because there's no backing file for TombstoneFieldData to remove.
There was a problem hiding this comment.
Good catch, fixed in ccc0243. A data-changing AddDataFile now withdraws index coverage of the fields it backs in that fragment, the same way a data-changing TombstoneFieldData does. A struct parent listed only to place a new child holds no values and is excluded, so indices on its other children survive. Tests cover both data_change values and the sibling case.
Related, not fixed here: a data-changing tombstone also drops overlays shadowing the field, and this path does not. An overlay on a field with no file in the fragment should be rare, and legacy DataReplacement's all-null case does not clear them either.
| &clustering_key_before, | ||
| &unenforced_clustering_key(state), | ||
| writes_clustering_key, | ||
| ) |
There was a problem hiding this comment.
should we check verify_primary_key() here too? looks like this path can allow a nullable field for a primary key.
just cross checking from:
lance/rust/lance-table/src/transaction/manifest_build.rs
Lines 2245 to 2249 in 18dc49b
There was a problem hiding this comment.
Yes, legacy UpdateConfig checks this and the action path dropped it. AlterField loosening nullability on a key column had the same hole. Fixed in ccc0243: apply now runs verify_primary_key() on the final schema, which covers both, unless the parent version already failed it. Tests cover both paths and the exemption.
| let mut next_row_id = current_manifest | ||
| .uses_stable_row_ids() | ||
| .then_some(current_manifest.next_row_id); | ||
| self.assign_row_ids_to_new_fragments(&mut next_row_id, new_version)?; |
There was a problem hiding this comment.
should we bump last_updated_at_version_meta for the existing fragments here?
lance/rust/lance-table/src/transaction/manifest_build.rs
Lines 1779 to 1787 in 18dc49b
There was a problem hiding this comment.
Intentionally not inferred here. #8646 adds RefreshRowVersionMetadata, which the writer emits with a full-fragment or row-offset selection. How many rows a column rewrite restamps does not depend on the file: a rewrite-columns update writes a whole-fragment file but restamps only the matched rows. Legacy operations still take the legacy path in this PR, so their stamping is unchanged.
| manifest.base_paths.insert(base.id, base); | ||
| } | ||
|
|
||
| manifest.config = dataset_config; |
There was a problem hiding this comment.
Do we need to call validate_auto_cleanup_config() here too when cleanup settings change, like we do in manifest_build?
lance/rust/lance-table/src/transaction/manifest_build.rs
Lines 2301 to 2303 in 18dc49b
There was a problem hiding this comment.
Yes, the action path skipped it. Fixed in ccc0243: apply validates the final config whenever a lance.auto_cleanup.* entry differs from the parent version, so it catches the problem no matter how many ConfigUpdates touch those keys, and a config that was already invalid does not block unrelated commits. Tests added.
…tion apply - A data-changing AddDataFile now withdraws index coverage of the fields it backs. Filling a field that had no file in a fragment (read as null) had no tombstone to do it. A struct parent listed only to place a child is excluded so indices on its other children survive. - Apply verifies the unenforced primary key on the final schema, covering ConfigUpdate declaring a key on an invalid field and AlterField loosening a key column. A parent whose key already fails is exempt. - Apply validates auto-cleanup config when any lance.auto_cleanup.* entry changed, matching the legacy UpdateConfig path. Co-Authored-By: Claude Opus 5.5 <[email protected]>
… on action apply - Apply checks the final schema's shape (one child for a list or map, at least one for a struct, none otherwise) and runs Schema::validate. Actions build the schema field by field, so nothing else guarantees it, and a childless list made Field::data_type panic. A parent schema that already fails is exempt. - Apply sets FLAG_MANAGED_BLOBS from the schema and rejects an invalid opt-in value, as the legacy path does on every commit. - Apply runs apply_range_segments, so tables that opt in re-encode inline row ids on the action path too. - SetDeletionFile always carries a deletion file and rejects one known to delete fewer rows than the current one. Restoring deleted rows left indices built since then silently missing them. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Resolve the two conflicts against current main: - manifest_build.rs: keep the shared assemble_manifest call and carry main's FLAG_INDEPENDENT_COVERING_FIELDS derivation into assemble_manifest, where the body it was added to now lives. - proto.rs: keep the action-path test imports alongside main's covering-contract tests.
The apply-level tests pin the decisions: a contradictory auto-cleanup config and an invalid managed-blob opt-in are rejected, and the managed blob fence follows the final schema. They cannot show that the rejection lands before a version is published, or that the flags a reader sees come from the commit that published them. Cover both on the public composite path: a rejected set leaves the next version contiguous with none of its settings visible, and a metadata-only opt-in lands both flag words on the version it writes.
| // SPDX-License-Identifier: Apache-2.0 | ||
| // SPDX-FileCopyrightText: Copyright The Lance Authors | ||
|
|
||
| //! Remove a field from the schema. | ||
|
|
||
| use super::apply::{ApplyState, TOMBSTONED_FIELD}; | ||
| use super::proto::required; | ||
| use super::{FieldRef, Footprint}; | ||
| use crate::format::pb_actions; | ||
| use lance_core::datatypes::Field; | ||
| use lance_core::deepsize::DeepSizeOf; | ||
| use lance_core::{Error, Result}; | ||
|
|
||
| /// Remove a field from the schema. | ||
| /// | ||
| /// The field must have no children left: a struct or list is dropped by one | ||
| /// `DropField` per descendant, deepest first, then the parent, all in the same | ||
| /// operation. Naming every removed field is what makes the footprint complete, | ||
| /// since a footprint has no schema to expand a subtree with. At apply, any data | ||
| /// file left backing no live field is dropped, and any index over a removed | ||
| /// field is discarded. | ||
| #[derive(Debug, Clone, PartialEq, DeepSizeOf)] | ||
| pub struct DropField { | ||
| pub field: FieldRef, | ||
| } | ||
|
|
||
| impl DropField { | ||
| pub(super) fn apply(&self, state: &mut ApplyState) -> Result<()> { | ||
| let field_id = state.resolve_schema_field(self.field, "DropField")?; | ||
| let field = state.schema().field_by_id(field_id).ok_or_else(|| { | ||
| Error::invalid_input(format!( | ||
| "DropField names field {field_id}, which does not exist" | ||
| )) | ||
| })?; | ||
| if !field.children.is_empty() { | ||
| let children = field | ||
| .children | ||
| .iter() | ||
| .map(|child| child.id.to_string()) | ||
| .collect::<Vec<_>>(); | ||
| return Err(Error::invalid_input(format!( | ||
| "DropField names field {field_id}, which still has children [{}]; drop a \ | ||
| field's children first, deepest first, in the same operation", | ||
| children.join(", ") | ||
| ))); | ||
| } | ||
| remove_field(&mut state.schema_mut().fields, field_id); | ||
|
|
||
| // The fields are gone from the schema, so the slots that backed them in | ||
| // each data file are dead. Tombstoning rather than rewriting the field | ||
| // list keeps a file's remaining columns at the positions they were | ||
| // written at; a file left with nothing live is pruned during | ||
| // normalization. | ||
| for fragment in state.fragments_mut() { | ||
| for file in fragment.files.iter_mut() { | ||
| if !file.fields.contains(&field_id) { | ||
| continue; | ||
| } | ||
| let fields = file | ||
| .fields | ||
| .iter() | ||
| .map(|id| { | ||
| if *id == field_id { | ||
| TOMBSTONED_FIELD | ||
| } else { | ||
| *id | ||
| } | ||
| }) | ||
| .collect::<Vec<_>>(); | ||
| file.fields = fields.into(); | ||
| } | ||
|
|
||
| if let Ok(overlaid) = u32::try_from(field_id) { | ||
| crate::format::overlay::tombstone_overlay_fields( | ||
| &mut fragment.overlays, | ||
| &[overlaid], | ||
| ); | ||
| } | ||
| } | ||
|
|
||
| // Indices over a field that no longer exists are discarded wholesale by | ||
| // `retain_relevant_indices`, so there is nothing to record here. | ||
| Ok(()) | ||
| } | ||
|
|
||
| /// Dropping a field discards every value it held. | ||
| pub(super) fn is_data_change(&self) -> bool { | ||
| true | ||
| } | ||
|
|
||
| /// The field's definition, and nothing else. Anything that depends on the | ||
| /// field -- data written for it, its metadata, a child added under it -- | ||
| /// requires that definition, so it collides with the drop as `Requires` | ||
| /// against `Writes`. | ||
| /// | ||
| /// That is complete for a struct too, because apply only drops a field | ||
| /// with no children left: the children were each dropped by their own | ||
| /// `DropField` in the same operation, which writes their definitions. | ||
| /// | ||
| /// Except for a child a concurrent set added after this one read: the | ||
| /// drop does not name it, and apply would reject the drop for leaving it | ||
| /// behind. The drop therefore requires that no child was added under the | ||
| /// field since, so that order is a retryable conflict instead. | ||
| pub(super) fn footprint(&self, footprint: &mut Footprint) { | ||
| footprint.write_field_definition(self.field); | ||
| footprint.require_children_unchanged(self.field); | ||
| } | ||
| } | ||
|
|
||
| /// Remove the field with `field_id` from `fields`, at whatever depth it sits. | ||
| fn remove_field(fields: &mut Vec<Field>, field_id: i32) { | ||
| let before = fields.len(); | ||
| fields.retain(|field| field.id != field_id); | ||
| if fields.len() != before { | ||
| return; | ||
| } | ||
| for field in fields.iter_mut() { | ||
| remove_field(&mut field.children, field_id); | ||
| } | ||
| } | ||
|
|
||
| impl From<&DropField> for pb_actions::DropField { | ||
| fn from(value: &DropField) -> Self { | ||
| Self { | ||
| field: Some(value.field.into()), | ||
| } | ||
| } | ||
| } | ||
|
|
||
| impl TryFrom<pb_actions::DropField> for DropField { | ||
| type Error = Error; | ||
|
|
||
| fn try_from(message: pb_actions::DropField) -> Result<Self> { | ||
| Ok(Self { | ||
| field: required(message.field, "DropField.field")?.try_into()?, | ||
| }) | ||
| } | ||
| } | ||
|
|
||
| #[cfg(test)] | ||
| mod tests { | ||
| use super::*; | ||
| use crate::format::DataFile; | ||
| use crate::format::Manifest; | ||
| use crate::transaction::action::test_support::{ | ||
| added_field, apply, apply_with_indices, backed_manifest, | ||
| }; | ||
| use crate::transaction::action::{Action, AddField}; | ||
| use crate::transaction::test_support::sample_index_metadata; | ||
| use arrow_schema::{DataType, Field as ArrowField, Fields, Schema as ArrowSchema}; | ||
| use lance_core::datatypes::Schema; | ||
| use lance_file::version::ConcreteFileVersion; | ||
| use rstest::rstest; | ||
| use std::sync::Arc; | ||
|
|
||
| #[test] | ||
| fn test_drop_field_removes_it_and_its_data() { | ||
| let (next, indices) = apply_with_indices( | ||
| &backed_manifest(), | ||
| vec![Action::DropField(DropField { | ||
| field: FieldRef::Committed(0), | ||
| })], | ||
| vec![sample_index_metadata("idx")], | ||
| ) | ||
| .unwrap(); | ||
|
|
||
| assert!(next.schema.field_by_id(0).is_none()); | ||
| // The file backed only the dropped field, so nothing is left of it. | ||
| assert!(next.fragments[0].files.is_empty()); | ||
| // An index over a field that no longer exists is discarded outright. | ||
| assert!(indices.is_empty()); | ||
| } | ||
|
|
||
| #[test] | ||
| fn test_drop_field_keeps_a_file_with_a_surviving_field() { | ||
| let mut manifest = backed_manifest(); | ||
| let mut schema_field = added_field("keep"); | ||
| schema_field.id = 1; | ||
| manifest.schema.fields.push(schema_field); | ||
| let mut fragment = manifest.fragments[0].clone(); | ||
| fragment.files[0] = DataFile::new( | ||
| "data/0.lance", | ||
| vec![0, 1], | ||
| vec![0, 1], | ||
| ConcreteFileVersion::V2_0, | ||
| None, | ||
| None, | ||
| ); | ||
| manifest.fragments = Arc::new(vec![fragment]); | ||
|
|
||
| let next = apply( | ||
| &manifest, | ||
| vec![Action::DropField(DropField { | ||
| field: FieldRef::Committed(0), | ||
| })], | ||
| ) | ||
| .unwrap(); | ||
|
|
||
| assert!(next.schema.field_by_id(0).is_none()); | ||
| assert!(next.schema.field_by_id(1).is_some()); | ||
| // The surviving field stays at the position it was written at. | ||
| assert_eq!( | ||
| next.fragments[0].files[0].fields.as_ref(), | ||
| &[TOMBSTONED_FIELD, 1] | ||
| ); | ||
| } | ||
|
|
||
| /// `id` at 0, then `s: {a, t: {b}}` at 1-4, with fragment 0's second file | ||
| /// backing the whole struct. | ||
| fn manifest_with_struct() -> Manifest { | ||
| let arrow = ArrowSchema::new(vec![ | ||
| ArrowField::new("id", DataType::Int32, true), | ||
| ArrowField::new( | ||
| "s", | ||
| DataType::Struct(Fields::from(vec![ | ||
| ArrowField::new("a", DataType::Int32, true), | ||
| ArrowField::new( | ||
| "t", | ||
| DataType::Struct(Fields::from(vec![ArrowField::new( | ||
| "b", | ||
| DataType::Int32, | ||
| true, | ||
| )])), | ||
| true, | ||
| ), | ||
| ])), | ||
| true, | ||
| ), | ||
| ]); | ||
| let mut manifest = backed_manifest(); | ||
| manifest.schema = Schema::try_from(&arrow).unwrap(); | ||
| let mut fragment = manifest.fragments[0].clone(); | ||
| fragment.files.push(DataFile::new( | ||
| "data/0-s.lance", | ||
| vec![1, 2, 3, 4], | ||
| vec![0, 1, 2, 3], | ||
| ConcreteFileVersion::V2_0, | ||
| None, | ||
| None, | ||
| )); | ||
| manifest.fragments = Arc::new(vec![fragment]); | ||
| manifest | ||
| } | ||
|
|
||
| fn drop_field(id: i32) -> Action { | ||
| Action::DropField(DropField { | ||
| field: FieldRef::Committed(id), | ||
| }) | ||
| } | ||
|
|
||
| /// A drop names exactly one field, so that every field it removes is in | ||
| /// its footprint; a struct with children still in place would take them | ||
| /// with it unnamed. | ||
| #[rstest] | ||
| #[case::struct_with_children(vec![drop_field(1)], "field 1")] | ||
| #[case::nested_struct_before_its_child( | ||
| vec![drop_field(2), drop_field(3), drop_field(4), drop_field(1)], | ||
| "field 3" | ||
| )] | ||
| fn test_drop_field_rejects_a_field_with_live_children( | ||
| #[case] actions: Vec<Action>, | ||
| #[case] named: &str, | ||
| ) { | ||
| let error = apply(&manifest_with_struct(), actions).unwrap_err(); | ||
|
|
||
| assert!(matches!(error, Error::InvalidInput { .. }), "{error:?}"); | ||
| let message = error.to_string(); | ||
| assert!(message.contains(named), "{message}"); | ||
| assert!( | ||
| message.contains("children first, deepest first"), | ||
| "{message}" | ||
| ); | ||
| } | ||
|
|
||
| #[test] | ||
| fn test_drop_field_takes_a_struct_children_first() { | ||
| let next = apply( | ||
| &manifest_with_struct(), | ||
| vec![drop_field(4), drop_field(3), drop_field(2), drop_field(1)], | ||
| ) | ||
| .unwrap(); | ||
|
|
||
| assert_eq!( | ||
| next.schema | ||
| .fields_pre_order() | ||
| .map(|field| field.id) | ||
| .collect::<Vec<_>>(), | ||
| vec![0] | ||
| ); | ||
| // The struct's file backed nothing else, so it is pruned. | ||
| assert_eq!(next.fragments[0].files.len(), 1); | ||
| assert_eq!(next.fragments[0].files[0].path, "data/0.lance"); | ||
| } | ||
|
|
||
| /// A drop that lands after a concurrent write to a child still applies: | ||
| /// it tombstones the child out of every file the version it lands on | ||
| /// holds, the concurrent one included. | ||
| #[test] | ||
| fn test_drop_field_landing_after_a_write_to_a_child() { | ||
| let mut manifest = manifest_with_struct(); | ||
| let mut concurrent = manifest.fragments[0].clone(); | ||
| concurrent.id = 1; | ||
| concurrent.files = vec![DataFile::new( | ||
| "data/1-a.lance", | ||
| vec![2], | ||
| vec![0], | ||
| ConcreteFileVersion::V2_0, | ||
| None, | ||
| None, | ||
| )]; | ||
| let mut fragments = manifest.fragments.as_ref().clone(); | ||
| fragments.push(concurrent); | ||
| manifest.fragments = Arc::new(fragments); | ||
|
|
||
| let next = apply( | ||
| &manifest, | ||
| vec![drop_field(4), drop_field(3), drop_field(2), drop_field(1)], | ||
| ) | ||
| .unwrap(); | ||
|
|
||
| let concurrent = next.fragments.iter().find(|f| f.id == 1).unwrap(); | ||
| assert!(concurrent.files.is_empty(), "{:?}", concurrent.files); | ||
| } | ||
|
|
||
| #[test] | ||
| fn test_drop_field_rejects_a_missing_field() { | ||
| let error = apply( | ||
| &backed_manifest(), | ||
| vec![Action::DropField(DropField { | ||
| field: FieldRef::Committed(7), | ||
| })], | ||
| ) | ||
| .unwrap_err(); | ||
|
|
||
| assert!(matches!(error, Error::InvalidInput { .. }), "{error:?}"); | ||
| assert!(error.to_string().contains("field 7"), "{error}"); | ||
| } | ||
|
|
||
| #[test] | ||
| fn test_drop_field_then_add_a_field_reuses_no_id() { | ||
| let next = apply( | ||
| &backed_manifest(), | ||
| vec![ | ||
| Action::DropField(DropField { | ||
| field: FieldRef::Committed(0), | ||
| }), | ||
| Action::AddField(AddField { | ||
| local: 0, | ||
| parent: None, | ||
| def: added_field("replacement"), | ||
| }), | ||
| ], | ||
| ) | ||
| .unwrap(); | ||
|
|
||
| // Field ids come from a monotonic counter, never from the freed id -- | ||
| // an old data file naming id 0 must not be read as the new field. | ||
| let ids = next | ||
| .schema | ||
| .fields_pre_order() | ||
| .map(|field| field.id) | ||
| .collect::<Vec<_>>(); | ||
| assert_eq!(ids, vec![1]); | ||
| } | ||
|
|
||
| #[test] | ||
| fn test_drop_field_can_name_a_field_minted_in_the_same_operation() { | ||
| // A squash of "add column" and "drop column" lowers to exactly this, | ||
| // and has no committed id to name the field by. | ||
| let next = apply( | ||
| &backed_manifest(), | ||
| vec![ | ||
| Action::AddField(AddField { | ||
| local: 0, | ||
| parent: None, | ||
| def: added_field("transient"), | ||
| }), | ||
| Action::DropField(DropField { | ||
| field: FieldRef::Local(0), | ||
| }), | ||
| ], | ||
| ) | ||
| .unwrap(); | ||
|
|
||
| assert!(next.schema.field("transient").is_none()); | ||
| } | ||
| } |
There was a problem hiding this comment.
while working on the staged transaction impl, I found a case where dropping the first column of a V1 file changes its fields from [0, 1] to [-2, 1]. The commit succeeds, but reading column b returns a's values instead.
The legacy Project path keeps the original field list, andDataReplacement already skips tombstoning V1 files because of the page table offset.
lance/rust/lance-table/src/transaction/manifest_build.rs
Lines 1586 to 1604 in ef57295
lance/rust/lance-table/src/transaction/manifest_build.rs
Lines 1713 to 1739 in ef57295
Probably a rare case... but since it can silently return the wrong data, we should apply the same check here?
There was a problem hiding this comment.
I've fixed this. Thanks for pointing it out. I forgot about the V1 file semantics here.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
A data-changing AddDataFile on a field with no file in an existing fragment left that fragment's overlays on the field in place, so an old overlay could mask the new values. Tombstone the written fields out of the fragment's overlays, as legacy DataReplacement does, skipping a struct parent listed only to place a new child. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…bles Co-Authored-By: Claude Opus 5.5 <[email protected]>
On a stable row id table, a data-changing AddDataFile or TombstoneFieldData on a committed fragment changed its values without updating last_updated_at_version_meta, so get_updated_rows() missed them. Apply cannot infer which rows changed, and no action can restamp them yet, so reject the operation. Re-encodes, new fragments, and deletions stay allowed. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…path Co-Authored-By: Claude Opus 5.5 <[email protected]>
A V1 reader finds a field's pages by its position among the file's fields, so DropField rewriting [0, 1] to [-2, 1] made reads of the surviving field return the dropped one's values. DropField now leaves a V1 file's field list whole, as legacy Project does, until none of its fields is live. TombstoneFieldData, like legacy DataReplacement, only replaces a V1 file whole: it rejects naming some but not all of the file's live fields. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Main's #9604 gives Operation::DataReplacement a required data_change; the two struct literals this PR adds set it to true, the previous behavior. Co-Authored-By: Claude Opus 5.5 <[email protected]>
There was a problem hiding this comment.
✅ Gate recommendation: approve.
The new regression test verifies the V1 field-mapping fix by reopening with a fresh session and checking the surviving values and original row IDs across two fragments. Partial V1 tombstones remain rejected.
The overlay and row-version findings remain addressed: data-changing files supersede old overlays, and unsupported in-place value changes on stable-row-ID tables fail before publication. Value-preserving re-encodes remain supported.
The base merge preserves the conflict boundary between composite commits and named operations. No blocking issue remains.
Stacked on #7954, which defines the Transaction V2 wire format. This PR implements it in Rust and changes no
.protofile.A transaction can now carry a
CompositeOperation: an ordered list of granular actions applied as one manifest change. Ids minted inside the operation are named by local tokens and assigned at apply, so an action set rebases onto a newer version without rewriting. Conflicts are decided by comparing the coordinates each action writes, not by a table of operation pairs. See the spec section for the model.Committing one requires
CommitBuilder::with_experimental_composite_operations. The Rust API is experimental; the format is not. Once conflict resolution is complete this will be marked non-experimental.Breaking change for Rust callers
Operationis a public enum with no#[non_exhaustive], and it gains aCompositeOperation(CompositeOperation)variant. Downstream code that matchesOperationexhaustively stops compiling until it handles the variant.Reviewing
Each action is one module under
rust/lance-table/src/transaction/action/holding its definition, apply, footprint, and wire conversion, so after the core you can review them one at a time. Suggested order:action.rs— theActionenum and dispatch.action/apply.rs—ApplyState: id minting, read-version checks, manifest assembly.action/footprint.rs— coordinates, preconditions, and when two action sets conflict.add_data_file.rs; the rest follow the same shape.transaction/proto.rsandio/commit/conflict_resolver.rs— wiring into decode and commit.dataset/tests/dataset_transactions.rs— end-to-end tests that commit an action set against a real dataset.Scope
AddFragment,AddField,AddDataFile,AddBase,TombstoneFieldData,RemoveFragment,SetDeletionFile,AlterField,DropField,ConfigUpdate,ReserveFragmentIds,ReserveRowIds,ResetTable.Append,Delete,UpdateBases, andDataReplacementare not translated into actions here. An action set that races one of them, or any other named operation, fails closed with a retryable conflict rather than merging blindly;conflict_resolver/tests/index_and_config.rscovers that for every named operation variant.Not included: translating
Merge/Project(needs the read schema to diff against), Python/Java bindings, squashing committed operations.Regression coverage
test_dropping_the_first_field_of_a_v1_file_keeps_the_surviving_valuespins the V1 data-file defect fixed in28878775b1: a two-fragment V1 file, a compositeDropFieldof the first field, then a fresh-session reopen and scan of the surviving column. Before the fix that scan returns the dropped column's values ([10, 11, 12, 13]where[100, 101, 102, 103]is stored); on this head it returns the stored values with their original row ids.Known gaps
Fully implemented conflict resolution will be done in follow up PRs. This feature is marked experimental until that is done.
🤖 Generated with Claude Code