use of org.hibernate.sql.ast.tree.expression.OrderedSetAggregateFunctionExpression in project hibernate-orm by hibernate.
the class AbstractSqlAstTranslator method visitOver.
@Override
public void visitOver(Over<?> over) {
final Expression overExpression = over.getExpression();
overExpression.accept(this);
final boolean orderedSetAggregate;
if (overExpression instanceof OrderedSetAggregateFunctionExpression) {
final OrderedSetAggregateFunctionExpression expression = (OrderedSetAggregateFunctionExpression) overExpression;
orderedSetAggregate = expression.getWithinGroup() != null && !expression.getWithinGroup().isEmpty();
} else {
orderedSetAggregate = false;
}
visitOverClause(over.getPartitions(), over.getOrderList(), over.getMode(), over.getStartKind(), over.getStartExpression(), over.getEndKind(), over.getEndExpression(), over.getExclusion(), orderedSetAggregate);
}
Aggregations