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

   ### What changes were proposed in this pull request?
   
   A follow-up of SPARK-62123 (#905). A response of a `grpc-status-details-bin` 
trailer that is not valid base64 is not refused: its details are empty, as gRPC 
core passes them on, so PySpark's `rpc_status.from_call` raises its 
`ValueError` ("Code in Status proto (StatusCode.OK) doesn't match status code 
(StatusCode.INTERNAL)"), and details that are base64 but not a 
`google.rpc.Status` raise protobuf's `DecodeError` ("Error parsing message with 
type 'google.rpc.Status': Wire format was corrupt"), where PySpark calls 
`from_call`. Other `-bin` keys of invalid base64 still fail the call, as in 
grpcio. The trailing metadata of the grpcio errors that the client builds is of 
grpcio's `_Metadatum` entries, where grpcio imports.
   
   ### Why are the changes needed?
   
   To close this difference from PySpark (the review of SPARK-62123). Only a 
broken server sends such details.
   
   ### Does this PR introduce _any_ user-facing change?
   
   Yes, as above.
   
   ### How was this patch tested?
   
   - New tests in the core crate and in `python/tests/test_dropin_offline.py`, 
against a raw HTTP/2 server, which fail without the change.
   - Probes of both clients against that server (13 cases of trailers-only and 
later trailers, unary and stream), of identical output.
   - The core tests (release and debug), clippy, rustdoc, the native server's 
crates, and the offline suite under coverage.
   
   ### Was this patch authored or co-authored using generative AI tooling?
   
   Generated-by: Claude Code
   
   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