bkuang88 commented on a change in pull request #5832: URL: https://github.com/apache/incubator-pinot/pull/5832#discussion_r468183845
########## 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; Review comment: I just tried. It won't let me use `UNION`/`INTERSECT` - unless I'm missing something completely. Based on the current diff, line 136-137 in `DistinctCountThetaSketchAggregationFunction.java` throws the exception ```java _postAggregationExpression = QueryContextConverterUtils .getExpression(CalciteSqlParser.compileToExpression(postAggregationExpression.getLiteral())); ``` Exception: ``` Encountered "INTERSECT" at line 1, column 1. Was expecting one of: "+" ... "-" ... <UNSIGNED_INTEGER_LITERAL> ... <DECIMAL_NUMERIC_LITERAL> ... <APPROX_NUMERIC_LITERAL> ... ``` ---------------------------------------------------------------- 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