cloud-fan commented on a change in pull request #31920:
URL: https://github.com/apache/spark/pull/31920#discussion_r611449856
##########
File path:
sql/core/src/main/scala/org/apache/spark/sql/execution/python/ExtractPythonUDFs.scala
##########
@@ -268,7 +266,7 @@ object ExtractPythonUDFs extends Rule[LogicalPlan] with
PredicateHelper {
case PythonEvalType.SQL_SCALAR_PANDAS_UDF |
PythonEvalType.SQL_SCALAR_PANDAS_ITER_UDF =>
ArrowEvalPython(validUdfs, resultAttrs, child, evalType)
case _ =>
- throw new AnalysisException("Unexpected UDF evalType")
+ throw QueryCompilationErrors.unexpectedUDFEvalTypeError()
Review comment:
ditto, we can even change to `IllegalStateException`
--
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.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]