suneet-s commented on a change in pull request #10026:
URL: https://github.com/apache/druid/pull/10026#discussion_r441223027



##########
File path: 
processing/src/main/java/org/apache/druid/query/aggregation/LongSumAggregatorFactory.java
##########
@@ -87,8 +89,12 @@ protected VectorAggregator factorizeVector(
   }
 
   @Override
-  public boolean canVectorize()
+  public boolean canVectorize(ColumnCapabilitiesProvider 
columnCapabilitiesProvider)
   {
+    if (fieldName != null) {
+      final ColumnCapabilities originalCapabilities = 
columnCapabilitiesProvider.getColumnCapabilities(fieldName);
+      return expression == null && (originalCapabilities == null || 
originalCapabilities.getType().isNumeric());
+    }

Review comment:
       Which tests validate these conditions? Similar comments for the other 
AggregatorFactories. I see DoubleMeanAggregator is being tested




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

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to