Skip to content

Conversation

dongjoon-hyun
Copy link
Member

@dongjoon-hyun dongjoon-hyun commented Apr 21, 2025

What changes were proposed in this pull request?

This PR aims to support token/userId/userAgent parameters in SparkConnectClient. After this PR, SparkConnectClient understands the following parameters in its remote argument.

sc://host1:123/;token=abcd;userId=test;userAgent=myagent

Why are the changes needed?

For feature parity.

Does this PR introduce any user-facing change?

No behavior change.

How was this patch tested?

Pass the CIs.

Was this patch authored or co-authored using generative AI tooling?

No.


/// Create a session that uses the specified connection string and userID.
/// - Parameters:
/// - connection: a string in a patter, `sc://{host}:{port}`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to specify possible parameters for connection?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for review. For that part, I'll document at the final step. Currently, I'm still working on the remaining params like useSsl (security), sessionId (requires reconnection support), grpcMaxMessageSize.

@dongjoon-hyun
Copy link
Member Author

Merged to main~

@dongjoon-hyun dongjoon-hyun deleted the SPARK-51857 branch April 21, 2025 14:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants