bersprockets commented on code in PR #37513:
URL: https://github.com/apache/spark/pull/37513#discussion_r947371052
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/collectionOperations.scala:
##########
@@ -3173,6 +3179,9 @@ object Sequence {
| int $i = 0;
|
| while ($t < $exclusiveItem ^ $stepSign < 0) {
+ | if ($i == $arr.length) {
+ | $arr = java.util.Arrays.copyOf($arr, $i + 1);
Review Comment:
Actually, you're right, they are different and I think the code genned code
is more correct. I followed up with #37542
--
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]