[DOP-25649] Create operations for Airflow tasks#210
Merged
Conversation
4628c50 to
a960d1d
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #210 +/- ##
===========================================
+ Coverage 91.93% 91.94% +0.01%
===========================================
Files 205 205
Lines 5095 5118 +23
Branches 365 370 +5
===========================================
+ Hits 4684 4706 +22
Misses 333 333
- Partials 78 79 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
TiGrib
approved these changes
May 6, 2025
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.
Change Summary
If consumer receives Airflow Task event, it creates both Run and Operation, with same id and created_at. Previously it created only Run, and thus lineage extracted from Airflow operators was completely ignored.
Added special handling for some Airflow Task facet fields:
task_idis used asoperation.nameoperator_classis used asoperation.descriptionmap_indexis used asoperation.positionAs test cases become more complex, I've splitted
tests/test_consumer/test_extractors/test_extractors_run.pytotest_extractors_run_airflow.py,test_extractors_run_spark.pyandtest_extractors_run_unknown.py. That's why PR is large.Related issue number
Checklist
docs/changelog/next_release/<pull request or issue id>.<change type>.rstfile added describing change(see CONTRIBUTING.rst for details.)