Skip to content

Conversation

@avriiil
Copy link

@avriiil avriiil commented Dec 2, 2025

Signed-off-by: Avril Aysha [email protected]

What changes were proposed in this pull request?

I’m experimenting with the new Declarative Pipelines API in Spark 4.1 (preview), and I noticed a gap in the documentation regarding how Python transformations are expected to obtain a SparkSession.

This PR adds documentation to the Python transformation section to show how to access the existing Spark session inside each transformation.

Why are the changes needed?

Without the getActiveSession line, the spark-pipelines run... command throws a NameError: name 'spark' is not defined.

Does this PR introduce any user-facing change?

No

How was this patch tested?

Docs were built locally

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

No

@github-actions github-actions bot added the DOCS label Dec 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant