zeroshade commented on issue #673: URL: https://github.com/apache/arrow-go/issues/673#issuecomment-3953338111
All instances of `SchemaField` in `pqarrow` should be initialized via `makeSchemaFields` which always sets `ColIndex` to `-1`. In what scenario will a non-leaf node have a non-negative `ColIndex`? Can you create an example that shows this bug at all? > Non-leaf fields often keep a default or incorrect ColIndex (e.g. 0 or another value). So IsLeaf() can be true for parent nodes, and code that uses IsLeaf() to decide “is this a physical column?” gets wrong results. I'm not aware of any scenario in the code where this occurs, is this a bug you've encountered? -- 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]
