Re: Access Schema from ArrowReader in Java

2020-10-07 Thread Micah Kornfield
I think this is probably because the schema is transformed for Dictionary encoded fields [1]. Something could probably be done to expose the schema separately, but the library and readers are mostly designed around populating and repopulating VectorSchemaRoots, so I don't think the extra cost was

Access Schema from ArrowReader in Java

2020-10-07 Thread Michael Mior
Why is the Schema object not exposed in ArrowReader? (e.g. readSchema is protected). Instead, I need to call getVectorSchemaRoot().getSchema() which unnecessarily allocates a VectorSchemaRoot that I don't immediately need. -- Michael Mior mm...@apache.org