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

   ### What changes were proposed in this pull request?
   
   Fixes from a review of #746:
   - Each native class's C name is now its bare `__name__`, so CPython's 
messages name it as PySpark's do. That gives `unsupported operand type(s) for 
^: 'bool' and 'Column'` and `'IntegerType' object has no attribute 'foo'`, not 
`pyspark.sql.connect.column.Column`. The repr, `__module__` and pickles are 
unchanged.
   - `TableArg` has the default repr, as PySpark's does: 
`<pyspark.sql.connect.table_arg.TableArg object at ...>`.
   - A StopWordsRemover offline test from #754 compares a list of a repeated 
protobuf field. Before, it failed under protobuf's pure-Python implementation.
   - Docs:
     - `Column.alias`'s `CANNOT_PROVIDE_METADATA` is raised at the call.
     - PySpark's pickler fails from about 600 levels.
     - The `isinstance` note holds for UDTFs only, since `udf` gives a function 
in both clients.
     - The Rust `create_dataframe` of a char/varchar schema fails with 
`UNSUPPORTED_CHAR_OR_VARCHAR_AS_STRING` when it has rows. Without rows, it 
fails only when `spark.sql.preserveCharVarcharTypeInfo` is not `true`.
   
   ### Why are the changes needed?
   
   They match PySpark 4.3.0 and correct the docs.
   
   ### Does this PR introduce _any_ user-facing change?
   
   Yes, the messages and the repr above.
   
   ### How was this patch tested?
   
   New offline tests cover the messages, the C names of all the native classes, 
and the repr. The offline suite and the main e2e files pass 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