Skip to content

Commit

Permalink
Adjust ParquetFileWriter.getWritteBytes to match OrcFileWriter behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
homar authored and findepi committed Feb 10, 2022
1 parent 3788633 commit 47a3850
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ public void close()
flush();
writeFooter();
}
bufferedBytes = 0;
}

// Parquet File Layout:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public ParquetFileWriter(
@Override
public long getWrittenBytes()
{
return parquetWriter.getWrittenBytes();
return parquetWriter.getWrittenBytes() + parquetWriter.getBufferedBytes();
}

@Override
Expand Down

0 comments on commit 47a3850

Please sign in to comment.