LuciferYang commented on code in PR #43178:
URL: https://github.com/apache/spark/pull/43178#discussion_r1402019010


##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/objects/objects.scala:
##########
@@ -915,15 +915,15 @@ case class MapObjects private(
   }
 
   private lazy val mapElements: scala.collection.Seq[_] => Any = 
customCollectionCls match {
-    case Some(cls) if classOf[WrappedArray[_]].isAssignableFrom(cls) =>
+    case Some(cls) if classOf[mutable.ArraySeq[_]].isAssignableFrom(cls) =>

Review Comment:
   
https://github.com/scala/scala/blob/0835d868e4e480f425946acda546112d7687dc30/src/library/scala/collection/mutable/package.scala#L16-L20
   
   ```scala
     @deprecated("Use ArraySeq instead of WrappedArray; it can represent both, 
boxed and unboxed arrays", "2.13.0")
     type WrappedArray[X] = ArraySeq[X]
     @deprecated("Use ArraySeq instead of WrappedArray; it can represent both, 
boxed and unboxed arrays", "2.13.0")
     val WrappedArray = ArraySeq
   ```
   
   In Scala 2.13, `WrappedArray` is just an alias for 
`scala.collection.mutable.ArraySeq`, and it's not an independent type. Did you 
encounter any bad cases?



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