bkuang88 commented on a change in pull request #5832: URL: https://github.com/apache/incubator-pinot/pull/5832#discussion_r468125503
########## File path: pinot-core/src/main/java/org/apache/pinot/core/query/aggregation/function/DistinctCountThetaSketchAggregationFunction.java ########## @@ -57,11 +61,31 @@ * <p>TODO: For performance concern, use {@code List<Sketch>} as the intermediate result. */ public class DistinctCountThetaSketchAggregationFunction implements AggregationFunction<Map<String, Sketch>, Long> { + + public enum MergeFunction { + SET_UNION, SET_INTERSECT, SET_DIFF; + + /** SET_INTERSECT($1, $2, $3) => "SET_INTERSECT($1,$2,$3)", useful for unit tests */ + public String apply(final String... args) { Review comment: Sure, I will get rid of the method for testing purposes. But I'd like to keep the functions for type-safety and inline with some of the other sql function and sql type enums. ---------------------------------------------------------------- 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: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For additional commands, e-mail: commits-h...@pinot.apache.org