Skip to content

Commit

Permalink
write ColumnMetaData instead of ColumnChunk after pages. (#90)
Browse files Browse the repository at this point in the history
  • Loading branch information
youngsofun authored Feb 28, 2022
1 parent e09a698 commit de54cbc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/write/column_chunk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ where

// write metadata
let mut protocol = TCompactOutputProtocol::new(writer);
bytes_written += column_chunk.write_to_out_protocol(&mut protocol)? as u64;
bytes_written += column_chunk.meta_data.as_ref().unwrap().write_to_out_protocol(&mut protocol)? as u64;
protocol.flush()?;

Ok((column_chunk, bytes_written))
Expand Down Expand Up @@ -83,7 +83,7 @@ where

// write metadata
let mut protocol = TCompactOutputStreamProtocol::new(writer);
bytes_written += column_chunk
bytes_written += column_chunk.meta_data.as_ref().unwrap()
.write_to_out_stream_protocol(&mut protocol)
.await?;
protocol.flush().await?;
Expand Down

0 comments on commit de54cbc

Please sign in to comment.