Skip to content

Commit b57909e

Browse files
authored
Merge pull request JanKaul#213 from JanKaul/fix-table-update-json-spec
fix add-spec
2 parents 0e46fe3 + 72ac3ab commit b57909e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

iceberg-rust/src/catalog/commit.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ pub enum TableUpdate {
115115
schema_id: i32,
116116
},
117117
/// Add new partition spec
118-
AddPartitionSpec {
118+
AddSpec {
119119
/// New partition spec
120120
spec: PartitionSpec,
121121
},
@@ -437,7 +437,7 @@ pub fn apply_table_updates(
437437
TableUpdate::SetCurrentSchema { schema_id } => {
438438
metadata.current_schema_id = schema_id;
439439
}
440-
TableUpdate::AddPartitionSpec { spec } => {
440+
TableUpdate::AddSpec { spec } => {
441441
metadata.partition_specs.insert(*spec.spec_id(), spec);
442442
}
443443
TableUpdate::SetDefaultSpec { spec_id } => {

0 commit comments

Comments
 (0)