koertkuipers commented on a change in pull request #28645:
URL: https://github.com/apache/spark/pull/28645#discussion_r435904995



##########
File path: sql/core/src/test/scala/org/apache/spark/sql/UDFSuite.scala
##########
@@ -581,4 +581,40 @@ class UDFSuite extends QueryTest with SharedSparkSession {
       .toDF("col1", "col2")
     checkAnswer(df.select(myUdf(Column("col1"), Column("col2"))), Row(2020) :: 
Nil)
   }
+
+  test("case class as element type of Seq/Array") {

Review comment:
       > There's implementation difference between `udf` and `Dataset.map`. So 
for the second case you're mentioned, it only work in `Dataset.map` but fail in 
`udf`.
   
   if the goal is to stop people from writing their own implementations of udf 
then the second case is also needed...




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



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

Reply via email to