sachouche commented on a change in pull request #1444: DRILL-6709: Extended the 
batch stats utility to other operators
URL: https://github.com/apache/drill/pull/1444#discussion_r212842963
 
 

 ##########
 File path: 
exec/java-exec/src/main/java/org/apache/drill/exec/physical/impl/aggregate/HashAggBatch.java
 ##########
 @@ -204,7 +204,12 @@ public HashAggBatch(HashAggregate popConfig, RecordBatch 
incoming, FragmentConte
     }
 
     hashAggMemoryManager = new HashAggMemoryManager(configuredBatchSize);
-    logger.debug("BATCH_STATS, configured output batch size: {}", 
configuredBatchSize);
+
+    if (isRecordBatchStatsLoggingEnabled()) {
 
 Review comment:
   I agree with your feedback; I was anyway going to make this improvement as I 
didn't like the extra condition. I added another method which takes a string 
format and variable arguments; modified most of the previous calls to use this 
method. 

----------------------------------------------------------------
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]


With regards,
Apache Git Services

Reply via email to