HyukjinKwon opened a new pull request, #753:
URL: https://github.com/apache/spark-connect-rust/pull/753

   ### What changes were proposed in this pull request?
   
   The objects of a session now report PySpark Connect's modules for their 
classes, as in PySpark 4.3.0. This covers the SparkSession, and its catalog, 
readers, stream manager, UDF/UDTF registrations, TVF and client. It also covers 
a DataFrame's writers, its merge writer and the merge clauses, `na`, `stat`, 
`groupBy`, `asTable` and the WindowSpec. So `repr(spark)` is 
`<pyspark.sql.connect.session.SparkSession object at ...>`, as in PySpark, and 
the classic import names still name the same classes.
   
   ### Why are the changes needed?
   
   SPARK-59117 gave DataFrame and Column the modules of the concrete Connect 
classes, but the other classes kept their classic modules. So their `repr`, 
`type(x).__module__` and pickles differed from PySpark's.
   
   ### Does this PR introduce _any_ user-facing change?
   
   Yes, these classes' `__module__` is now PySpark Connect's.
   
   ### How was this patch tested?
   
   A new offline test file compares each class's module and qualified name with 
official PySpark's, and pickles each class. The offline suite passes locally.
   
   ### Was this patch authored or co-authored using generative AI tooling?
   
   Generated-by: Claude Opus 5.5
   
   This pull request and its description were written by Isaac.
   


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