-
Notifications
You must be signed in to change notification settings - Fork 14.3k
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
openlineage, docs: tips for OpenLineage method implementation #31817
openlineage, docs: tips for OpenLineage method implementation #31817
Conversation
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.
LGTM
How to properly implement OpenLineage methods? | ||
============================================== | ||
|
||
There are several things worth noting when implementing OpenLineage in operators. |
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.
There are several things worth noting when implementing OpenLineage in operators. | |
There are a couple of things worth noting when implementing OpenLineage in operators. |
I was anticipating a third thing when reading this, but there seems to be only two?
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.
Hmm, I was referring to everything below that line. I guess that's unclear, tried to fix this.
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.
A section would be useful about how one should add tests (both unit and system tests)
|
||
First, do not import OpenLineage methods on top-level, but in OL method itself. | ||
This allows users to use your provider even if they do not have OpenLineage provider installed. | ||
|
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.
can we add an example here (or) link to an already existing example? The example will be useful for folks who are starting out on a new OL implementation
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.
Added example from GcsToGcsOperator
- due to it's simplicity.
4c1f75c
to
65c2e40
Compare
65c2e40
to
9a48c9f
Compare
Signed-off-by: Maciej Obuchowski <[email protected]>
9a48c9f
to
7a41a13
Compare
@sunank200 added section on writing tests. I assume system test PR will be merged in similar shape it's today, if not I'll update the section. |
Add tips for provider contributors on how to effectively add OpenLineage support.