forked from apache/spark
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPARK-44263][CONNECT] Custom Interceptors Support
### What changes were proposed in this pull request? Extend SparkSession to allow custom interceptors (grpc's ClientInterceptor) ### Why are the changes needed? This can be used for different purposes, such as customized authentication mechanisms This is similar to Python which allows custom channel builders (apache#40993) ### Does this PR introduce _any_ user-facing change? SparkSession allows custom interceptors. The proposed usage is ``` val interceptor = new ClientInterceptor {....} val session = SparkSession.builder().interceptor(interceptor).create() ``` Or same with more than one interceptor ### How was this patch tested? UT Closes apache#41880 from cdkrot/scala_channel_builder_2. Lead-authored-by: Alice Sayutina <[email protected]> Co-authored-by: Alice Sayutina <[email protected]> Signed-off-by: Hyukjin Kwon <[email protected]>
- Loading branch information
1 parent
82d70f6
commit 6755f1c
Showing
5 changed files
with
80 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters