npawar commented on a change in pull request #6124:
URL: https://github.com/apache/incubator-pinot/pull/6124#discussion_r506778177



##########
File path: 
pinot-core/src/test/java/org/apache/pinot/core/segment/processing/framework/SegmentMapperTest.java
##########
@@ -275,7 +275,7 @@ public void segmentMapperTest(String mapperId, 
SegmentMapperConfig segmentMapper
     SegmentMapperConfig config11 = new SegmentMapperConfig(_pinotSchema,
         new 
RecordTransformerConfig.Builder().setTransformFunctionsMap(transformFunctionMap).build(),
         new 
RecordFilterConfig.Builder().setRecordFilterType(RecordFilterFactory.RecordFilterType.FILTER_FUNCTION)
-            .setFilterFunction("Groovy({timeValue != 1597795200000}, 
timeValue)").build(), Lists.newArrayList(
+            .setFilterFunction("Groovy({timeValue < 1597795200000L|| timeValue 
>= 1597881600000}, timeValue)").build(), Lists.newArrayList(

Review comment:
       This is due to changing filtering to be before transform.
   Moved filtering to before transform, because I realized while testing, that 
is transform happens before, user has to be aware of resulting values and apply 
filter accordingly.
   I feel filter then transform makes more sense.
   If someone wants filter to apply to transformed column, they can include the 
transformation in the filter function




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