mhatipog opened a new pull request, #55859:
URL: https://github.com/apache/arrow/pull/55859

   ### Rationale for this change
   
   `run_end_decode` has no kernel for run-end encoded arrays with dictionary 
values, so decoding them or converting them to pandas fails.
   
   ### What changes are included in this PR?
   
   `run_end_decode` accepts dictionary values. The kernel decodes the indices 
with the existing decoder and puts the unchanged dictionary back, so the 
dictionary type (index width, ordered flag) is kept.
   
   This builds on #55858, which the `to_pandas()` path needs. Only the last 
commit is new here.
   
   ### Are these changes tested?
   
   Yes. `TestRunEndEncodeDecodeNested.DictionaryValues` covers the run end and 
index widths, nulls, slices, chunked and empty input. 
`test_run_end_encoded_dictionary_to_pandas` covers the Python side.
   
   ### Are there any user-facing changes?
   
   `pc.run_end_decode` and `to_pandas()` accept run-end encoded arrays with 
dictionary values.
   
   ### Was AI used for this PR?
   
   In accordance to the [AI generation 
guidelines](https://arrow.apache.org/docs/dev/developers/overview.html#ai-generated-code),
 please disclose below whether and how AI was used in this PR.
   
   **PR code and description written by:**
   
   - [ ] Human
   - [x] AI
   
   **Reviewed before submission by:**
   
   - [x] Human
   - [x] AI
   - [ ] Not reviewed
   
   Built from source and tested (Arrow C++ and pyarrow, Linux aarch64) before 
submission.
   
   * GitHub Issue: #55489
   


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