Class NonAggregationGroupByToDistinctQueryRewriter
- java.lang.Object
-
- org.apache.pinot.sql.parsers.rewriter.NonAggregationGroupByToDistinctQueryRewriter
-
- All Implemented Interfaces:
QueryRewriter
public class NonAggregationGroupByToDistinctQueryRewriter extends Object implements QueryRewriter
-
-
Constructor Summary
Constructors Constructor Description NonAggregationGroupByToDistinctQueryRewriter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PinotQueryrewrite(PinotQuery pinotQuery)Rewrite non-aggregate group by query to distinct query.
-
-
-
Method Detail
-
rewrite
public PinotQuery rewrite(PinotQuery pinotQuery)
Rewrite non-aggregate group by query to distinct query. E.g. ``` SELECT col1+col2*5 FROM foo GROUP BY col1, col2 => SELECT distinct col1+col2*5 FROM foo SELECT col1, col2 FROM foo GROUP BY col1, col2 => SELECT distinct col1, col2 FROM foo ```- Specified by:
rewritein interfaceQueryRewriter- Parameters:
pinotQuery-
-
-