devinjdangelo opened a new pull request, #7896: URL: https://github.com/apache/arrow-datafusion/pull/7896
## Which issue does this PR close? Closes #7891 ## Rationale for this change The initial implementation of hive style partition demux code only supported plain UTF8 arrays. This PR adds support for dictionary encoded UTF8 arrays. Specifically Dictionary(UInt16, UTF8) and Dictionary(Int32, UTF8). I am unsure if this will cover all cases, or if there is a generic way to convert Dictionary(_, Utf8) -> Utf8 array values. ## What changes are included in this PR? - Extracts string values from dictionary encoded UTF8 arrays to determine hive partitions - Adds additional cases to schema semantic equivalence checking: Dictionary(_, dtype) is now considered semantically equivalent to dtype. ## Are these changes tested? Somewhat by existing tests, but... Datafusion only supports Dictionary(k,v) types in inferred schemas, so we may need to bundle some dictionary encoded parquet files to improve test coverage. I have manually tested inserting a Dictionary(Int32, Utf8) into a partitioned table. ## Are there any user-facing changes? No, just (hopefully) more robust support for inserting inferred schema string data as a partition column. -- 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]
