srowen commented on code in PR #38533:
URL: https://github.com/apache/spark/pull/38533#discussion_r1015808514
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/aggregate/Mode.scala:
##########
@@ -158,7 +158,7 @@ case class PandasMode(
modes.append(key)
}
}
- new GenericArrayData(modes.toSeq)
+ new GenericArrayData(modes)
Review Comment:
This looks fine. The only concern I can think of is if this means the
GenericArrayData accesses a mutable underlying array then from an ArrayBuffer,
but this may be no problem given the usages changed here. The ArrayBuffers are
local vars.
--
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]