xjlem commented on code in PR #1024: URL: https://github.com/apache/parquet-mr/pull/1024#discussion_r1104154913
########## parquet-hadoop/src/main/java/org/apache/parquet/hadoop/InternalParquetRecordWriter.java: ########## @@ -147,12 +152,12 @@ private void checkBlockSizeReached() throws IOException { LOG.info("mem size {} > {}: flushing {} records to disk.", memSize, nextRowGroupSize, recordCount); flushRowGroupToStore(); initStore(); - recordCountForNextMemCheck = min(max(MINIMUM_RECORD_COUNT_FOR_CHECK, recordCount / 2), MAXIMUM_RECORD_COUNT_FOR_CHECK); + recordCountForNextMemCheck = min(max(minRowCountForBlockSizeCheck, recordCount / 2), maxRowCountForBlockSizeCheck); Review Comment: Yes,it's like the config 'parquet.page.size.row.check.min'、'parquet.page.size.row.check.max'. The rowgroup check algorithm is like the page check algorithm with config set ‘parquet.page.size.check.estimate’ true . -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@parquet.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org