Skip to content

SparkConnectClient

Creating Instance

SparkConnectClient takes the following to be created:

SparkConnectClient is created when:

CustomSparkConnectBlockingStub

SparkConnectClient creates a new CustomSparkConnectBlockingStub when created with the following:

CustomSparkConnectBlockingStub Value
ManagedChannel This ManagedChannel
SparkConnectStubState This SparkConnectStubState

This CustomSparkConnectBlockingStub is used for the following:

Clone Itself

copy(): SparkConnectClient

copy requests this Configuration for a SparkConnectClient


copy is used when:

  • SparkSession (Spark SQL) is requested for a new SparkSession

Release Session

releaseSession(): proto.ReleaseSessionResponse

releaseSession builds a new ReleaseSessionRequest with the following:

In the end, releaseSession requests this CustomSparkConnectBlockingStub to releaseSession with the ReleaseSessionRequest.


releaseSession is used when:

  • SparkSession is requested to close

Execute Plan

execute(
  plan: proto.Plan): CloseableIterator[proto.ExecutePlanResponse]

execute...FIXME

Not used

execute does not seem used.