Skip to content

Commit

Permalink
Fix ManifestFile length calculation (apache#466)
Browse files Browse the repository at this point in the history
  • Loading branch information
nooberfsh authored Jul 17, 2024
1 parent 0942e3c commit f30d872
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/iceberg/src/spec/manifest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -289,8 +289,8 @@ impl ManifestWriter {
avro_writer.append(value)?;
}

let length = avro_writer.flush()?;
let content = avro_writer.into_inner()?;
let length = content.len();
self.output.write(Bytes::from(content)).await?;

let partition_summary =
Expand Down

0 comments on commit f30d872

Please sign in to comment.