Add OpenLineage to Spark 3.5.4 #34
Merged
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.
PySpark 3.5.4 Upgrade with OpenLineage, Kafka, and Iceberg Patch Support
Overview
This PR upgrades PySpark to version
2815!3.5.4+affirm.5(dev version: 2815!3.5.4+affirm.dev14) to include critical dependencies for data lineage tracking (OpenLineage), event streaming (Kafka), and existing patched Iceberg implementation. This upgrade enables Affirm's data platform to track data lineage across Spark jobs and integrate seamlessly with Kafka and our custom Iceberg patches.Changes
1.
pom.xml- Dependency Version Updateskafka.version(3.4.1), andopenlineage.version(1.38.0)2.
assembly/pom.xml- Assembly Configuration3.
python/pyspark/version.py- Version String UpdateFile:
spark/python/pyspark/version.py__version__string from the previous dev version to2815!3.5.4+affirm.5Validation
Comparison: Dev vs Latest Prod
We validate the new dev version against the latest production version (
2815!3.5.4+affirm.4) using the following approach:Expected Results:
affirm.dev14Testing
Build
Outputs:
spark/python/dist/pyspark-2815!3.5.4+affirm.dev14-py2.py3-none-any.whl(wheel distribution)Upload to Artifactory
Testing in Stage
Build a stage batch pod with the branch:
Run basi Spark tests:
Run spark + openlineage + kafka
Successfully validate execution pod sping up and event emission with testing in https://github.com/Affirm/all-the-things/pull/157428
Next Steps
After Approval + Successful Testing
Once this PR is approved build the production version: