@Override
public void visit(MaxFunction expression) {
expression.getExpression().accept(this);
MaxFunctionStateObject stateObject = new MaxFunctionStateObject(
parent,
expression.hasDistinct(),
this.stateObject
);
stateObject.setExpression(expression);
this.stateObject = stateObject;
}