Ma77Ball opened a new pull request, #5028:
URL: https://github.com/apache/texera/pull/5028

   ### What changes were proposed in this PR?
     `OneOnEach.initialize` now resets `index` to `0` in addition to replacing 
the `available` array. Previously, re-initializing an existing instance left 
the cursor at its prior position, causing `next()` to skip elements or
     throw `IndexOutOfBoundsException` when the new array was shorter than the 
old cursor value.
   
     ### Any related issues, documentation, or discussions?
     Closes: #4731
   
     ### How was this PR tested?
     - Manual reasoning against the reproduction in the bug report:
       `initialize([A,B]); next(); next(); initialize([C]); next()` now returns 
`C` instead of throwing.
     - Expected CI checks to pass (no API change, single-line fix in a 
self-contained class).
   
     ### Was this PR authored or co-authored using generative AI tooling?
     Co-authored with Claude Opus 4.7 in compliance with ASF


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

Reply via email to