jorisvandenbossche commented on code in PR #40661:
URL: https://github.com/apache/arrow/pull/40661#discussion_r1530258570


##########
python/pyarrow/src/arrow/python/arrow_to_pandas.cc:
##########
@@ -2320,6 +2329,17 @@ class ConsolidatedBlockCreator : public 
PandasBlockCreator {
       if (arrays_[column_index]->type()->id() == Type::EXTENSION) {
         arrays_[column_index] = GetStorageChunkedArray(arrays_[column_index]);
       }
+      // In case of a RunEndEncodedArray default to the storage type
+      else if (arrays_[column_index]->type()->id() == Type::RUN_END_ENCODED) {
+        ARROW_ASSIGN_OR_RAISE(Datum decoded,
+                              compute::RunEndDecode(arrays_[column_index]));

Review Comment:
   Can you move this part into the `GetDecodedChunkedArray` helper? (so it is 
fully equivalent like the `GetStorageChunkedArray` one? Or the problem is that 
in this case it can fail and we need to handle that?)



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