BryanCutler commented on a change in pull request #25091: 
[SPARK-28323][SQL][Python] PythonUDF should be able to use in join condition
URL: https://github.com/apache/spark/pull/25091#discussion_r302258125
 
 

 ##########
 File path: 
sql/core/src/main/scala/org/apache/spark/sql/execution/python/ExtractPythonUDFs.scala
 ##########
 @@ -179,7 +179,7 @@ object ExtractPythonUDFs extends Rule[LogicalPlan] with 
PredicateHelper {
             validUdfs.forall(PythonUDF.isScalarPythonUDF),
             "Can only extract scalar vectorized udf or sql batch udf")
 
-          val resultAttrs = udfs.zipWithIndex.map { case (u, i) =>
+          val resultAttrs = validUdfs.zipWithIndex.map { case (u, i) =>
 
 Review comment:
   oof, nice catch!

----------------------------------------------------------------
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]


With regards,
Apache Git Services

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

Reply via email to