hvanhovell commented on code in PR #55768:
URL: https://github.com/apache/spark/pull/55768#discussion_r3260498783


##########
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:
   I know this is early days, but can you do me a favor here. Can we define an 
interface for UDF planning. One for the current implementation and one for the 
new one? This way we need only one if/else statement, and we can keep the 
implementations separate...



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