Skip to content

Commit

Permalink
PARQUET-2139: set metadata offset to 0 since it is not written at all (
Browse files Browse the repository at this point in the history
  • Loading branch information
etseidl authored Jul 20, 2024
1 parent 1de2af8 commit b714b79
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -534,8 +534,9 @@ private void addRowGroup(
int columnOrdinal = -1;
ByteArrayOutputStream tempOutStream = null;
for (ColumnChunkMetaData columnMetaData : columns) {
ColumnChunk columnChunk =
new ColumnChunk(columnMetaData.getFirstDataPageOffset()); // verify this is the right offset
// There is no ColumnMetaData written after the chunk data, so set the ColumnChunk
// file_offset to 0
ColumnChunk columnChunk = new ColumnChunk(0);
columnChunk.file_path = block.getPath(); // they are in the same file for now
InternalColumnEncryptionSetup columnSetup = null;
boolean writeCryptoMetadata = false;
Expand Down

0 comments on commit b714b79

Please sign in to comment.