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

   ### Rationale for this change
   
   The documentation for SchemaField says:
   
   > ColIndex is only populated (not -1) when it is a leaf column.
   
   But the implementation never actually initializes the value to -1, so it is 
incorrectly set to 0 on non-leaf nodes.
   
   ### What changes are included in this PR?
   
   This commit adds a helper function to correctly initialize SchemaField, and 
comprehensive test cases to cover all existing branches.
   
   ### Are these changes tested?
   
   Yes, see test cases.
   
   ### Are there any user-facing changes?
   
   


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