[ 
https://issues.apache.org/jira/browse/DRILL-6147?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16527063#comment-16527063
 ] 

ASF GitHub Bot commented on DRILL-6147:
---------------------------------------

sachouche commented on a change in pull request #1330: DRILL-6147: Adding 
Columnar Parquet Batch Sizing functionality
URL: https://github.com/apache/drill/pull/1330#discussion_r199031792
 
 

 ##########
 File path: 
exec/java-exec/src/main/java/org/apache/drill/exec/store/parquet/columnreaders/VarLenColumnBulkInput.java
 ##########
 @@ -311,6 +372,113 @@ private void loadPageIfNeeed() throws IOException {
     }
   }
 
+  private boolean batchConstraintsReached() {
+    // Let's update this column's memory quota
+    columnMemoryQuota = 
batchSizerMgr.getCurrentFieldBatchMemory(parentInst.valueVec.getField().getName());
+    assert columnMemoryQuota.getMaxMemoryUsage() > 0;
+
+    // Now try to figure out whether the next chunk will take us beyond the 
memory quota
+    final int maxNumRecordsInChunk = VarLenBulkPageReader.BUFF_SZ / 
BatchSizingMemoryUtil.INT_VALUE_WIDTH;
 
 Review comment:
   This is related to the Bulk Entry containing a maximum of 1024 values (for a 
4k buffer).

----------------------------------------------------------------
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:
[email protected]


> Limit batch size for Flat Parquet Reader
> ----------------------------------------
>
>                 Key: DRILL-6147
>                 URL: https://issues.apache.org/jira/browse/DRILL-6147
>             Project: Apache Drill
>          Issue Type: Improvement
>          Components: Storage - Parquet
>            Reporter: salim achouche
>            Assignee: salim achouche
>            Priority: Major
>             Fix For: 1.14.0
>
>
> The Parquet reader currently uses a hard-coded batch size limit (32k rows) 
> when creating scan batches; there is no parameter nor any logic for 
> controlling the amount of memory used. This enhancement will allow Drill to 
> take an extra input parameter to control direct memory usage.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to