Yicong-Huang opened a new pull request, #53824:
URL: https://github.com/apache/spark/pull/53824

   ### What changes were proposed in this pull request?
   
   Remove the SPARK-51112 workaround in `_convert_arrow_table_to_pandas()` that 
bypassed PyArrow's `to_pandas()` for empty tables.
   
   ### Why are the changes needed?
   
   SPARK-55056 fixed the root cause in `ArrayWriter.finish()` by properly 
initializing the Arrow ListArray offset buffer when `count == 0`. This 
workaround is no longer necessary.
   
   ### Does this PR introduce _any_ user-facing change?
   
   No.
   
   ### How was this patch tested?
   
   Existing test `test_to_pandas_for_empty_df_with_nested_array_columns` passes.
   
   ### Was this patch authored or co-authored using generative AI tooling?
   No.


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to