Arawoof06 commented on PR #1247: URL: https://github.com/apache/arrow-java/pull/1247#issuecomment-6056793873
Good catch on the ordering. Pushed a fix: the length check now runs first in all four methods, before setBit (and before handleSafe in the safe variants), so a rejected oversize call leaves the slot null and doesn't grow the vector. Also updated the tests per your note: both setBigEndian tests now assert isNull(0) after the rejected call, and I added setBigEndianSafe cases for DecimalVector and Decimal256Vector asserting isNull and unchanged value capacity. Full TestDecimalVector + TestDecimal256Vector run is green. -- 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]
