polestar1988 commented on issue #38458:
URL: https://github.com/apache/arrow/issues/38458#issuecomment-1785271119

   I also handled it in my code instead of using func (a *Binary) ValueOffset(i 
int) :
   ```
   if recordNumber < 0 || recordNumber > colBinary.Data().Len() {
        slog.Error("index out of range", "calculateSize", "Error")
        return 0
   }
   end := 
int(colBinary.ValueOffsets()[colBinary.Data().Offset()+recordNumber+1])
   start := 
int(colBinary.ValueOffsets()[colBinary.Data().Offset()+recordNumber])
   elementSize = end - start
   ....
   ```


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