Rich-T-kid commented on code in PR #24227:
URL: https://github.com/apache/datafusion/pull/24227#discussion_r3750916670
##########
datafusion/datasource-parquet/src/opener/mod.rs:
##########
@@ -985,6 +992,91 @@ impl MetadataLoadedParquetOpen {
metadata_dirty = true;
}
+ // Detect dictionary-encoded string/binary columns and rewrite their
Arrow types
+ // to Dictionary(Int32, ...) so the parquet reader produces dictionary
arrays.
+ // All three schemas are updated together so the reader, expr-adapter,
and
+ // downstream operators all agree on the output type.
+ if prepared.enable_rle_to_dictionary {
Review Comment:
All three schemas are updated together so the reader, expr-adapter, and
downstream operators all agree on the output type.
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]