Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Commit

Permalink
Migrated
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgecarleitao committed Apr 15, 2022
1 parent c6be676 commit 728698f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/io/parquet/write/file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,13 @@ impl<W: Write> FileWriter<W> {
}

/// Writes the footer of the parquet file. Returns the total size of the file.
pub fn end(self, key_value_metadata: Option<Vec<KeyValue>>) -> Result<(u64, W)> {
pub fn end(&mut self, key_value_metadata: Option<Vec<KeyValue>>) -> Result<u64> {
let key_value_metadata = add_arrow_schema(&self.schema, key_value_metadata);
Ok(self.writer.end(key_value_metadata)?)
}

/// Consumes this writer and returns the inner writer
pub fn into_inner(self) -> W {
self.writer.into_inner()
}
}

0 comments on commit 728698f

Please sign in to comment.