Fix parquet data page offset calculation in parquet writer
Cherry-pick of
The ParquetWriter::flush method calls int OutputStreamSliceOutput::size()
to get the data page offset which is a long, thus flushing fails trying
to write files larger than ~2 GB with an integer overflow exception.
@@ -211,7 +211,7 @@ public class ParquetWriter
List<BufferData> bufferDataList = builder.build();
// update stats
- long stripeStartOffset = outputStream.size();
+ long stripeStartOffset = outputStream.longSize();
List<ColumnMetaData> metadatas = bufferDataList.stream()
.map(BufferData::getMetaData)
.collect(toImmutableList());
