Skip to content

Commit 9de3b7c

Browse files
LuciferYangdongjoon-hyun
authored andcommitted
[SPARK-51156][CONNECT][FOLLOWUP] Remove unused private val AUTH_TOKEN_ON_INSECURE_CONN_ERROR_MSG from SparkConnectClient
### What changes were proposed in this pull request? This pr aims to remove unused `private val AUTH_TOKEN_ON_INSECURE_CONN_ERROR_MSG` from `SparkConnectClient` because it becomes a useless `private val` declaration after apache#50006. ### Why are the changes needed? Remove unused `private val`. ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Pass GitHub Actions ### Was this patch authored or co-authored using generative AI tooling? No Closes apache#50070 from LuciferYang/SPARK-51156-FOLLOWUP. Authored-by: yangjie01 <[email protected]> Signed-off-by: Dongjoon Hyun <[email protected]>
1 parent 60bcc71 commit 9de3b7c

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

sql/connect/common/src/main/scala/org/apache/spark/sql/connect/client/SparkConnectClient.scala

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -406,10 +406,6 @@ object SparkConnectClient {
406406
private val AUTH_TOKEN_META_DATA_KEY: Metadata.Key[String] =
407407
Metadata.Key.of("Authentication", Metadata.ASCII_STRING_MARSHALLER)
408408

409-
private val AUTH_TOKEN_ON_INSECURE_CONN_ERROR_MSG: String =
410-
"Authentication token cannot be passed over insecure connections. " +
411-
"Either remove 'token' or set 'use_ssl=true'"
412-
413409
// for internal tests
414410
private[sql] def apply(channel: ManagedChannel): SparkConnectClient = {
415411
new SparkConnectClient(Configuration(), channel)

0 commit comments

Comments
 (0)