Ngone51 commented on a change in pull request #28645:
URL: https://github.com/apache/spark/pull/28645#discussion_r431147291
##########
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`.
----------------------------------------------------------------
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]