HyukjinKwon opened a new pull request, #724:
URL: https://github.com/apache/spark-connect-rust/pull/724
### What changes were proposed in this pull request?
A native feature constructor now checks its keyword names before it fetches
the defaults of the active session. With no active session,
`StopWordsRemover(bogus=1)` used to raise a bare `AssertionError`; now it
raises PySpark's `TypeError` ("... got an unexpected keyword argument
'bogus'"). PySpark raises that error when it binds the constructor's signature,
before the body fetches anything. The values are still converted after the
fetch, as in PySpark.
### Why are the changes needed?
For parity with PySpark 4.3.0. A post-merge cross-review found it.
### Does this PR introduce _any_ user-facing change?
Yes: the error above, without an active session.
### How was this patch tested?
A new offline test checks the constructor of every feature class without a
session. A probe also compared both clients: StopWordsRemover, Tokenizer and
CountVectorizer give identical errors with no session.
### 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]