LuciferYang commented on code in PR #47662:
URL: https://github.com/apache/spark/pull/47662#discussion_r1708718462
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/collectionOperations.scala:
##########
@@ -432,7 +432,7 @@ case class ArraysZip(children: Seq[Expression], names:
Seq[Expression])
inputArrays.map(_.numElements()).max
}
- val result = new Array[InternalRow](biggestCardinality)
+ val result = new Array[AnyRef](biggestCardinality)
Review Comment:
When constructing an Array and assigning values to it, since the original
elements are reference types, the Array directly defined as `Array[AnyRef]`
--
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]