thorfour opened a new issue, #36384:
URL: https://github.com/apache/arrow/issues/36384

   ### Describe the enhancement requested
   
   Previously if one wanted to iterate over the fields in the schema you would 
call the Fields() function and just iterate over the slice. However, due to 
[this 
commit](https://github.com/rtpsw/arrow/commit/802674b73c94c84388a6775b424ebe4f6e04274e)
 there is now an allocation and copy that happens when that's called. So to 
iterate over the fields without allocations one now must use the Field(i int) 
method; however that means a user must already know exactly how many fields are 
in the schema which isn't possible today.
   
   It would be idea if there were a `NumFields() int` method on schemas 
allowing users to iterate over the fields without copying.
   
   ### Component(s)
   
   Go


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