Skip to content

Commit

Permalink
PARQUET-1414: Simplify next row count check calculation (#537)
Browse files Browse the repository at this point in the history
  • Loading branch information
gszadovszky authored and rdblue committed Nov 8, 2018
1 parent ca294f9 commit 7f561b6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ private void sizeCheck() {
writer.writePage();
remainingMem = props.getPageSizeThreshold();
} else {
rowCountForNextRowCountCheck = min(rowCountForNextRowCountCheck, rowCount + (pageRowCountLimit - rows));
rowCountForNextRowCountCheck = min(rowCountForNextRowCountCheck, writer.getRowsWrittenSoFar() + pageRowCountLimit);
}
long rowsToFillPage =
usedMem == 0 ?
Expand Down

0 comments on commit 7f561b6

Please sign in to comment.