pyspark.sql.SparkSession.client

property SparkSession.client

Gives access to the Spark Connect client. In normal cases this is not necessary to be used and only relevant for testing.

New in version 3.4.0.

Returns
SparkConnectClient

Notes

This API is unstable, and a developer API. It returns non-API instance SparkConnectClient. This is an API dedicated to Spark Connect client only. With regular Spark Session, it throws an exception.