FrankChen021 commented on code in PR #12995:
URL: https://github.com/apache/druid/pull/12995#discussion_r958189488


##########
core/src/main/java/org/apache/druid/math/expr/Function.java:
##########
@@ -363,10 +412,7 @@ abstract class StringLongFunction extends BivariateFunction
     protected final ExprEval eval(ExprEval x, ExprEval y)
     {
       if (!x.type().is(ExprType.STRING) || !y.type().is(ExprType.LONG)) {
-        throw new IAE(
-            "Function[%s] needs a string as first argument and an integer as 
second argument",
-            name()
-        );
+        throw new ValidationException(this, "needs a STRING as first argument 
and an LONG as second argument");

Review Comment:
   ```suggestion
           throw new ValidationException(this, "needs a STRING as first 
argument and a LONG as second argument");
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to