lesterfan commented on code in PR #45685:
URL: https://github.com/apache/arrow/pull/45685#discussion_r1983024117


##########
cpp/src/parquet/arrow/reader_internal.cc:
##########
@@ -256,6 +256,23 @@ Status ByteArrayStatisticsAsScalars(const Statistics& 
statistics,
   return Status::OK();
 }
 
+Result<std::shared_ptr<ChunkedArray>> ViewOrCastChunkedArray(
+    const std::shared_ptr<ChunkedArray>& array,
+    const std::shared_ptr<DataType>& logical_value_type) {
+  auto view_result = array->View(logical_value_type);

Review Comment:
   Someone more familiar with the code should confirm, but I believe this 
`View` was originally meant to transform between value types which do have 
equivalent layouts, e.g. `arrow::dictionary(::arrow::int32(), 
::arrow::binary())` and `arrow::dictionary(::arrow::int32(), ::arrow::utf8())`.



-- 
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]

Reply via email to