[
https://issues.apache.org/jira/browse/SPARK-46586?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17802380#comment-17802380
]
BingKun Pan commented on SPARK-46586:
-------------------------------------
Okay, I will do it
> Support `s.c.immutable.ArraySeq` as `customCollectionCls` in `MapObjects`
> -------------------------------------------------------------------------
>
> Key: SPARK-46586
> URL: https://issues.apache.org/jira/browse/SPARK-46586
> Project: Spark
> Issue Type: Improvement
> Components: SQL
> Affects Versions: 4.0.0
> Reporter: Yang Jie
> Priority: Major
>
> {code:java}
> val myUdf = udf((a: immutable.ArraySeq[Int]) =>
> immutable.ArraySeq.unsafeWrapArray[Int](Array(a.head + 99)))
> checkAnswer(Seq(Array(1))
> .toDF("col")
> .select(myUdf(Column("col"))),
> Row(ArrayBuffer(100))) {code}
> will test failed in Spark 4.0 when using Scala 2.13
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]