// Min/Max nodes can be either an aggregate or a per-row function depending on the number or arguments
private static void handleMinMax(String ident, EsperEPL2GrammarParser.LibFunctionArgsContext ctxArgs, Map<Tree, ExprNode> astExprNodeMap)
{
// Determine min or max
String childNodeText = ident;
MinMaxTypeEnum minMaxTypeEnum;
boolean filtered = childNodeText.startsWith("f");
if (childNodeText.equals("min") || childNodeText.equals("fmin")) {
minMaxTypeEnum = MinMaxTypeEnum.MIN;
}
else if (childNodeText.equals("max") || childNodeText.equals("fmax")) {