Skip to content

Commit

Permalink
Fix footer metadata_len type.
Browse files Browse the repository at this point in the history
  • Loading branch information
Berrysoft committed Jul 31, 2023
1 parent b998644 commit 6169e8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parquet/src/file/writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ impl<W: Write + Send> SerializedFileWriter<W> {
let end_pos = self.buf.bytes_written();

// Write footer
let metadata_len = (end_pos - start_pos) as i32;
let metadata_len = (end_pos - start_pos) as u32;

self.buf.write_all(&metadata_len.to_le_bytes())?;
self.buf.write_all(&PARQUET_MAGIC)?;
Expand Down

0 comments on commit 6169e8c

Please sign in to comment.