You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "fornwall (via GitHub)" <gi...@apache.org> on 2026/07/14 21:32:51 UTC

[PR] fix(arrow/scalar): reject negative indices in GetScalar [arrow-go]

fornwall opened a new pull request, #940:
URL: https://github.com/apache/arrow-go/pull/940

   `GetScalar` only guarded the upper bound (`idx >= arr.Len()`), and the `IsNull(idx)` call ran before that check, so a negative index panicked inside the null-bitmap lookup instead of returning an error.
   
   Check both bounds first and return `arrow.ErrIndex` for any out-of-range index.
   
   Split out from review comment in #936.


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] fix(arrow/scalar): reject negative indices in GetScalar [arrow-go]

Posted by "zeroshade (via GitHub)" <gi...@apache.org>.
zeroshade merged PR #940:
URL: https://github.com/apache/arrow-go/pull/940


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org