LuciferYang commented on code in PR #37185:
URL: https://github.com/apache/spark/pull/37185#discussion_r920862969
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/util/GenericArrayData.scala:
##########
@@ -27,7 +27,7 @@ class GenericArrayData(val array: Array[Any]) extends
ArrayData {
// Specified this as`scala.collection.Seq` because seqOrArray can be
// `mutable.ArraySeq` in Scala 2.13
- def this(seq: scala.collection.Seq[Any]) = this(seq.toArray)
+ def this(seq: scala.collection.Seq[Any]) =
this(GenericArrayDataHelper.toArray(seq))
Review Comment:
Maybe we can try to make `GenericArrayData` hold `immutable.ArraySeq`
instead of `Array` when Spark only support Scala 2.13.
--
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]