Skip to content

Commit

Permalink
fix for migration test
Browse files Browse the repository at this point in the history
  • Loading branch information
wjones127 committed Nov 5, 2024
1 parent 0d35fbc commit c53fb4a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions rust/lance/src/io/commit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,10 @@ fn fix_schema(manifest: &mut Manifest) -> Result<()> {
for (old_field_id, new_field_id) in &old_field_id_mapping {
let field = manifest.schema.mut_field_by_id(*old_field_id).unwrap();
field.id = *new_field_id;

if let Some(local_field) = manifest.local_schema.mut_field_by_id(*old_field_id) {
local_field.id = *new_field_id;
}
}

// Drop data files that are no longer in use.
Expand Down

0 comments on commit c53fb4a

Please sign in to comment.