tustvold commented on a change in pull request #1082: URL: https://github.com/apache/arrow-rs/pull/1082#discussion_r785499448
########## File path: parquet/src/arrow/array_reader.rs ########## @@ -1749,57 +1753,43 @@ impl<'a> ArrayReaderBuilder { null_mask_only, )?, )), - PhysicalType::BYTE_ARRAY => { - if cur_type.get_basic_info().converted_type() == ConvertedType::UTF8 { - if let Some(ArrowType::LargeUtf8) = arrow_type { - let converter = - LargeUtf8Converter::new(LargeUtf8ArrayConverter {}); - Ok(Box::new(ComplexObjectArrayReader::< - ByteArrayType, - LargeUtf8Converter, - >::new( - page_iterator, - column_desc, - converter, - arrow_type, - )?)) - } else { - use crate::arrow::arrow_array_reader::{ - ArrowArrayReader, StringArrayConverter, - }; - let converter = StringArrayConverter::new(); - Ok(Box::new(ArrowArrayReader::try_new( - *page_iterator, - column_desc, - converter, - arrow_type, - )?)) + PhysicalType::BYTE_ARRAY => match arrow_type { + // TODO: Replace with optimised dictionary reader (#171) Review comment: See #1180 -- 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: github-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org