lidavidm commented on issue #73: URL: https://github.com/apache/arrow-nanoarrow/issues/73#issuecomment-1327945347
https://issues.apache.org/jira/browse/ARROW-257 is the actual reason. It was to resolve an early Java/C++ incompatibility: Java used the implementation-defined type ID as the union index, C++ used the child index (as you suggest), and the indirection would allow the two to be compatible. Also you could define a union with more cases than physically present. -- 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-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org