(1) First commit just renamed MAX_BATCH_SIZE to MAX_BATCH_ROW_COUNT in order to 
avoid confusion over "size".
(2) 2nd commit: Addressing two issues: The configuration batch size (default 
16M) is taken as is (by the memory manager). And the (outgoing) batch size 
estimates are created early (when the outgoing is empty), based on 64K rows per 
batch.
   The change: Taking the Hash-Agg memory limit into account, and planning for 
multiple batches, the configured size (e.g. 16M) may be reduced to allow for 
the needed number of batches (this new size is given to the memory manager).
Later when the estimates are made, that (possibly reduced) size is used to 
reduce the estimates, if needed.


[ Full content available at: https://github.com/apache/drill/pull/1438 ]
This message was relayed via gitbox.apache.org for [email protected]

Reply via email to