xi-db opened a new pull request, #54113: URL: https://github.com/apache/spark/pull/54113
### What changes were proposed in this pull request? Previously, decompression logic was scattered across multiple handlers (AnalyzePlanHandler, ExecutePlanHandler, and probably other handlers in the future), with each handler responsible for decompressing its own compressed requests. This approach made it difficult to maintain consistent decompression behavior across different RPC types. This PR introduces RequestDecompressionInterceptor as a gRPC interceptor that handles decompression for all compressed requests before they reach downstream handlers. ### Why are the changes needed? This refactoring ensures single responsibility and consistency, as decompression logic is now in one place, making it easier to maintain. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? New tests for the interceptor and existing tests for plan compression. ### Was this patch authored or co-authored using generative AI tooling? No. -- 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]
