Skip to content

Commit

Permalink
fix ut
Browse files Browse the repository at this point in the history
  • Loading branch information
wangsff committed Oct 17, 2024
1 parent 7491ddf commit 0c7f534
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -703,7 +703,13 @@ class RuleExprParser extends Serializable {
val passArgs: List[Expr] = refExpr +: funcArgs
val functionExpr = parseFunctionExprDetail(ctx.function_name().getText, passArgs)
functionExpr match {
case c: FunctionExpr => AggOpExpr(AggUdf(c.name, funcArgs), refExpr)
case c: FunctionExpr =>
try {
parseAggFunc(c.name, c.funcArgs.head)
} catch {
case _: Exception =>
AggOpExpr(AggUdf(c.name, funcArgs), refExpr)
}
case c => c
}
}
Expand Down

0 comments on commit 0c7f534

Please sign in to comment.