HyukjinKwon commented on code in PR #40896:
URL: https://github.com/apache/spark/pull/40896#discussion_r1178192015


##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/PythonUDF.scala:
##########
@@ -57,9 +57,18 @@ case class PythonUDF(
     children: Seq[Expression],
     evalType: Int,
     udfDeterministic: Boolean,
-    resultId: ExprId = NamedExpression.newExprId)
+    resultId: ExprId = NamedExpression.newExprId,
+    isBarrier: Boolean = false)
   extends Expression with Unevaluable with NonSQLExpression with 
UserDefinedExpression {
 
+  if (isBarrier &&
+    evalType != PythonEvalType.SQL_MAP_PANDAS_ITER_UDF &&
+    evalType != PythonEvalType.SQL_MAP_ARROW_ITER_UDF) {

Review Comment:
   ```suggestion
         evalType != PythonEvalType.SQL_MAP_PANDAS_ITER_UDF &&
         evalType != PythonEvalType.SQL_MAP_ARROW_ITER_UDF) {
   ```



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