itholic commented on code in PR #38664: URL: https://github.com/apache/spark/pull/38664#discussion_r1040452617
########## sql/catalyst/src/main/scala/org/apache/spark/sql/errors/QueryCompilationErrors.scala: ########## @@ -637,17 +637,21 @@ private[sql] object QueryCompilationErrors extends QueryErrorsBase { } def invalidFunctionArgumentsError( - name: String, expectedNum: String, actualNum: Int): Throwable = { + sqlExpr: Seq[Expression], name: String, expectedNum: String, actualNum: Int): Throwable = { new AnalysisException( errorClass = "WRONG_NUM_ARGS", messageParameters = Map( + "sqlExpr" -> sqlExpr.map(toSQLExpr(_)).mkString(","), Review Comment: Btw, seems like it's duplicated to https://github.com/apache/spark/pull/38707 ? Can we just close this ticket ? -- 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: reviews-unsubscr...@spark.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org