You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Niklas Mohrin (Jira)" <ji...@apache.org> on 2025/06/20 13:40:00 UTC

[jira] [Created] (SPARK-52539) Session hooks

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: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org