HyukjinKwon opened a new pull request, #43991:
URL: https://github.com/apache/spark/pull/43991

   ### What changes were proposed in this pull request?
   
   This PR proposes to rename `_func` to `_functions` in the protobuf instances 
for Pandas Functions API with Spark Connect so the string presentation includes 
them (see also https://github.com/apache/spark/pull/39223).
   
   ### Why are the changes needed?
   
   In order to have the pretty string format for protobuf messages in Python 
side.
   
   ### Does this PR introduce _any_ user-facing change?
   
   Yes,
   
   ```bash
   ./bin/pyspark --remote local
   ```
   
   ```python
   df = spark.range(1)
   print(df.mapInPandas(lambda x: x, df.schema)._plan.print())
   ```
   
   **Before:**
   ```
   <MapPartitions is_barrier='False'>
     <Range start='0', end='1', step='1', num_partitions='None'>
   ```
     
   **After:**
   
   ```
   <MapPartitions function='<lambda>(id)', is_barrier='False'>
     <Range start='0', end='1', step='1', num_partitions='None'>
   ```
   
   ### How was this patch tested?
   
   Manually tested as above.
   
   ### 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: reviews-unsubscr...@spark.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to