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

   ### What changes were proposed in this pull request?
   
   A follow-up of #802 (SPARK-61915) and #798 (SPARK-61896), each green on its 
own:
   - #798 added `SparkConnectClient::spawn_unary_execute_plan`, which sends the 
removal of a dropped checkpoint's cached relation as PySpark's 
`CachedRemoteRelation.__del__` sends it.
   - #802 made `fill_client_type` return the error of a user agent that PySpark 
refuses, a too-long one, as PySpark raises it at each request built with it.
   
   #802 merged after #798, and `spawn_unary_execute_plan` ignored the new 
`Result`, so `cargo +1.100.0 clippy -- -D warnings` fails on master (`unused 
Result that must be used`, client.rs:2696).
   
   PySpark's finalizer raises as it builds such a request, before anything is 
sent, and the error of a finalizer is only reported. So the removal is not 
sent, and the error is logged, as the removal's other failures already are.
   
   ### Why are the changes needed?
   
   To fix the lint of master, which fails the `rustfmt + clippy` job of every 
pull request, and to give the finalizer PySpark's behavior with a refused user 
agent.
   
   ### Does this PR introduce _any_ user-facing change?
   
   No. Only a session of a user agent that PySpark refuses reaches it, and 
every other request of such a session fails already.
   
   ### How was this patch tested?
   
   - `cargo +1.100.0 clippy -p apache-spark-connect-core -p 
apache-spark-connect -p pyspark-rs --all-targets -- -D warnings` passes, and 
failed on master.
   - `cargo test -p apache-spark-connect -p apache-spark-connect-core 
--release` (1639 passed).
   - `cargo fmt --all --check` and `audit_no_stubs.sh`.
   
   ### 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