This is an automated email from the ASF dual-hosted git repository.
liurenjie1024 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/iceberg-rust.git
The following commit(s) were added to refs/heads/main by this push:
new f30d872 Fix ManifestFile length calculation (#466)
f30d872 is described below
commit f30d8723f4fc6038272cf8ad6beca65ce83d1ea6
Author: tom <[email protected]>
AuthorDate: Wed Jul 17 15:31:05 2024 +0800
Fix ManifestFile length calculation (#466)
---
crates/iceberg/src/spec/manifest.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/crates/iceberg/src/spec/manifest.rs
b/crates/iceberg/src/spec/manifest.rs
index dd14823..f4b9331 100644
--- a/crates/iceberg/src/spec/manifest.rs
+++ b/crates/iceberg/src/spec/manifest.rs
@@ -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 =