You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by do...@apache.org on 2025/05/09 16:47:13 UTC

(spark-connect-swift) branch main updated: [SPARK-52059] Fix `DataFrame` to use SparkSession's `transportSecurity`

This is an automated email from the ASF dual-hosted git repository.

dongjoon pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/spark-connect-swift.git


The following commit(s) were added to refs/heads/main by this push:
     new dc2f57e  [SPARK-52059] Fix `DataFrame` to use SparkSession's `transportSecurity`
dc2f57e is described below

commit dc2f57e4f04faef601bb4511ab01b0968f04b8ea
Author: Dongjoon Hyun <do...@apache.org>
AuthorDate: Fri May 9 09:47:05 2025 -0700

    [SPARK-52059] Fix `DataFrame` to use SparkSession's `transportSecurity`
    
    ### What changes were proposed in this pull request?
    
    This PR aims to fix `DataFrame` to use `SparkSession`'s `transportSecurity`.
    
    ### Why are the changes needed?
    
    To support TLS correctly. This issue was reported during `v0.1.0 RC1` vote.
    
    ### Does this PR introduce _any_ user-facing change?
    
    Yes, but it's a bug fix which the previous behavior is not proper.
    
    ### How was this patch tested?
    
    Pass the CIs.
    
    ### Was this patch authored or co-authored using generative AI tooling?
    
    No.
    
    Closes #118 from dongjoon-hyun/SPARK-52059.
    
    Authored-by: Dongjoon Hyun <do...@apache.org>
    Signed-off-by: Dongjoon Hyun <do...@apache.org>
---
 Sources/SparkConnect/DataFrame.swift | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Sources/SparkConnect/DataFrame.swift b/Sources/SparkConnect/DataFrame.swift
index 266963f..f595d96 100644
--- a/Sources/SparkConnect/DataFrame.swift
+++ b/Sources/SparkConnect/DataFrame.swift
@@ -279,7 +279,7 @@ public actor DataFrame: Sendable {
     try await withGRPCClient(
       transport: .http2NIOPosix(
         target: .dns(host: spark.client.host, port: spark.client.port),
-        transportSecurity: .plaintext
+        transportSecurity: spark.client.transportSecurity
       ),
       interceptors: spark.client.getIntercepters()
     ) { client in


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org