This allows getting the schema before building a reader; so users can apply transformations to the schema, like this:
let reader_builder = reader_builder
.with_projection(projection.clone())
.with_batch_size(ORC_BATCH_SIZE);
let schema = transform_schema(&reader_builder.schema());
let reader = reader_builder.with_schema(schema).build();
where transform_schema could, for example, be a function that changes the TimeUnit of Timestamp datatypes.
This allows getting the schema before building a reader; so users can apply transformations to the schema, like this:
where
transform_schema
could, for example, be a function that changes theTimeUnit
ofTimestamp
datatypes.