-
Notifications
You must be signed in to change notification settings - Fork 182
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix OpenLineage deprecation warning #1449
Conversation
openlineage suggests using event_v2 as the new import call UserWarning: {message : DeprecationWarning('This module is deprecated. Please use `openlineage.client.event_v2`.'), category : 'DeprecationWarning', filename : '/home/airflow/.local/lib/python3.10/site-packages/openlineage/client/filter.py', lineno : 9, line : None}
✅ Deploy Preview for sunny-pastelito-5ecb04 canceled.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is really helpful, @CorsettiS , thank you very much for pointing this out and submitting a fix. I left some minor feedback in-line
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1449 +/- ##
==========================================
- Coverage 96.94% 96.87% -0.07%
==========================================
Files 73 73
Lines 4355 4358 +3
==========================================
Hits 4222 4222
- Misses 133 136 +3 ☔ View full report in Codecov by Sentry. |
Thanks a lot for taking this to completion, @corsettigyg ! We'll be releasing it as part of Cosmos 1.9.0 |
Description
openlineage suggests using event_v2 as the new import call. This can be seen in the source code of openlineage itself for the run method.
Related Issue(s)
UserWarning: {message : DeprecationWarning('This module is deprecated. Please use
openlineage.client.event_v2
.'), category : 'DeprecationWarning', filename : '/home/airflow/.local/lib/python3.10/site-packages/openlineage/client/filter.py', lineno : 9, line : None}Breaking Change?
No
Checklist