Add OpenLineage parent info to EMR Spark steps#70182
Merged
shahar1 merged 2 commits intoJul 23, 2026
Merged
Conversation
mobuchowski
force-pushed
the
agent/add-openlineage-parent-info-emr-steps
branch
from
July 21, 2026 13:32
b89bb2e to
7216ce9
Compare
mobuchowski
marked this pull request as ready for review
July 22, 2026 08:34
kacpermuda
approved these changes
Jul 22, 2026
eladkal
approved these changes
Jul 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
EmrAddStepsOperatorcan now pass OpenLineage parent job metadata to classic EMR Spark steps. The newopenlineage_inject_parent_job_infooption defaults toopenlineage.spark_inject_parent_job_info, matching the other Spark-based Amazon operators.The injection reuses OpenLineage's Spark property helper and translates its output into tokenized
--conf key=valuearguments forcommand-runner.jarsteps usingspark-submitorrun-example. It leaves non-Spark steps, custom Jar steps, and steps with existing parent settings unchanged, and does not mutate the operator's original step configuration.This lets OpenLineage events emitted by Spark link back to the originating Airflow task run when parent information injection is enabled.
Prior art
This follows the same opt-in injection pattern already used by:
SparkSubmitOperatorin #47508, which introduced generic Spark parent configuration injection.GlueJobOperatorin #64513, which translates the properties into Glue's Spark--confformat.EmrServerlessStartJobOperatorin #64807, which injects parent and transport properties intospark-defaults.EmrContainerOperatorin #66816, which applies the EMR Serverless pattern to EMR on EKS.Documentation
The general feature is described in the OpenLineage Spark automatic injection documentation.
This PR also updates:
EmrAddStepsOperatorexample.Was generative AI tooling used to co-author this PR?
Generated-by: Codex (GPT-5.6) following the guidelines