Niklas Mohrin created SPARK-52539:
-------------------------------------
Summary: Session hooks
Key: SPARK-52539
URL: https://issues.apache.org/jira/browse/SPARK-52539
Project: Spark
Issue Type: New Feature
Components: Connect
Affects Versions: 4.0.0
Reporter: Niklas Mohrin
This change introduces a new class SparkSession.Hook to pyspark. Such a hook
can be registered with a spark session and will be called at particular times.
For this initial version, hooks support the on_execute_plan method which can be
used to modify an ExecutePlanRequest right before it is sent.
The motivation for this change is to define a slim but powerful interface with
which additional behavior can be injected into a spark session.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]