sven-weber-db commented on code in PR #55768:
URL: https://github.com/apache/spark/pull/55768#discussion_r3280527660


##########
sql/core/src/main/scala/org/apache/spark/sql/classic/Dataset.scala:
##########
@@ -1521,14 +1462,36 @@ class Dataset[T] private[sql](
       isBarrier: Boolean = false,
       profile: ResourceProfile = null): DataFrame = {
     val func = funcCol.expr
-    Dataset.ofRows(
-      sparkSession,
+    val output = toAttributes(func.dataType.asInstanceOf[StructType])
+
+    if (SQLConf.get.getConf(SQLConf.UNIFIED_UDF_EXECUTION_ENABLED)) {

Review Comment:
   Yes, as discussed offline: I introduced a new planning node, which captures 
the whole UDF planning. There is a single branch when building the session 
state, which decides, if the new or the legacy planning will be used.



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