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

   ### Rationale for this change
   
   `Table.to_pandas()` segfaults on run-end encoded columns whose pandas block 
is created from the column type, such as time zone aware timestamps.
   
   ### What changes are included in this PR?
   
   `ConsolidatedBlockCreator::CreateBlocks` reads the column type after 
`GetBlockType`, which is where run-end encoded columns are decoded and 
extension columns replaced by their storage. Before, the writer was created 
from the run-end encoded type.
   
   ### Are these changes tested?
   
   Yes, `test_run_end_encoded_timestamp_tz_table_to_pandas`.
   
   ### Are there any user-facing changes?
   
   No API changes.
   
   **This PR contains a "Critical Fix".** It fixes a crash in 
`Table.to_pandas()` on valid input.
   
   ### 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: #55837
   


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