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


##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/PythonUDF.scala:
##########
@@ -73,9 +73,18 @@ case class PythonUDF(
     children: Seq[Expression],
     evalType: Int,
     udfDeterministic: Boolean,
-    resultId: ExprId = NamedExpression.newExprId)
+    resultId: ExprId = NamedExpression.newExprId,
+    isBarrier: Boolean = false)

Review Comment:
   > Do we expect more configs like this to be introduced in the future?
   
   I think we will not introduce more ML-specific configs.  
   FYI, We might introduce [dependency 
management](https://github.com/apache/spark/pull/40954) and stage-level 
scheduling in the future, but they are both more general.
   
   > Have we considered using a metadata or options map here?
   
   Good question, I am now thinking whether we can use `TreeNodeTag` to avoid 
changing the `PythonUDF` expression.



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