You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@drill.apache.org by GitBox <gi...@apache.org> on 2018/08/03 22:03:58 UTC

[GitHub] Ben-Zvi commented on a change in pull request #1420: Drill 6664: Limit the maximum parquet reader batch rows to 64k

Ben-Zvi commented on a change in pull request #1420: Drill 6664: Limit the maximum parquet reader batch rows to 64k
URL: https://github.com/apache/drill/pull/1420#discussion_r207678086
 
 

 ##########
 File path: exec/java-exec/src/main/java/org/apache/drill/exec/ExecConstants.java
 ##########
 @@ -322,7 +322,7 @@ private ExecConstants() {
 
   // Controls the flat parquet reader batching constraints (number of record and memory limit)
   public static final String PARQUET_FLAT_BATCH_NUM_RECORDS = "store.parquet.flat.batch.num_records";
-  public static final OptionValidator PARQUET_FLAT_BATCH_NUM_RECORDS_VALIDATOR = new RangeLongValidator(PARQUET_FLAT_BATCH_NUM_RECORDS, 1, Integer.MAX_VALUE);
+  public static final OptionValidator PARQUET_FLAT_BATCH_NUM_RECORDS_VALIDATOR = new RangeLongValidator(PARQUET_FLAT_BATCH_NUM_RECORDS, 1, 65535);
 
 Review comment:
   Should the number be the actual power of 2 -- 2^16 ?  That is - 65536  , without the "minus one" ....
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services