diff --git a/crates/iceberg/src/spec/manifest_list/_serde.rs b/crates/iceberg/src/spec/manifest_list/_serde.rs index 1756d5bbfa..2a10c39ea3 100644 --- a/crates/iceberg/src/spec/manifest_list/_serde.rs +++ b/crates/iceberg/src/spec/manifest_list/_serde.rs @@ -193,7 +193,7 @@ pub(super) struct ManifestFileV3 { pub deleted_rows_count: i64, pub partitions: Option>, pub key_metadata: Option, - pub first_row_id: Option, + pub first_row_id: Option, } impl ManifestFileV3 { @@ -215,7 +215,7 @@ impl ManifestFileV3 { deleted_rows_count: Some(self.deleted_rows_count.try_into()?), partitions: self.partitions, key_metadata: self.key_metadata.map(|b| b.into_vec()), - first_row_id: self.first_row_id, + first_row_id: self.first_row_id.map(|n| n.try_into()).transpose()?, }; Ok(manifest_file) @@ -372,7 +372,7 @@ impl TryFrom for ManifestFileV3 { .try_into()?, partitions: value.partitions, key_metadata, - first_row_id: value.first_row_id, + first_row_id: value.first_row_id.map(|n| n.try_into()).transpose()?, }) } }