Search in sources :

Example 1 with GroupingElement

use of io.confluent.ksql.parser.tree.GroupingElement in project ksql by confluentinc.

the class Analyzer method analyzeGroupBy.

private void analyzeGroupBy(final GroupBy groupBy) {
    for (GroupingElement groupingElement : groupBy.getGroupingElements()) {
        Set<Expression> groupingSet = groupingElement.enumerateGroupingSets().get(0);
        analysis.getGroupByExpressions().addAll(groupingSet);
    }
}
Also used : GroupingElement(io.confluent.ksql.parser.tree.GroupingElement) ComparisonExpression(io.confluent.ksql.parser.tree.ComparisonExpression) DereferenceExpression(io.confluent.ksql.parser.tree.DereferenceExpression) WindowExpression(io.confluent.ksql.parser.tree.WindowExpression) Expression(io.confluent.ksql.parser.tree.Expression)

Aggregations

ComparisonExpression (io.confluent.ksql.parser.tree.ComparisonExpression)1 DereferenceExpression (io.confluent.ksql.parser.tree.DereferenceExpression)1 Expression (io.confluent.ksql.parser.tree.Expression)1 GroupingElement (io.confluent.ksql.parser.tree.GroupingElement)1 WindowExpression (io.confluent.ksql.parser.tree.WindowExpression)1