Skip to content
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

dbt, openlineage: set run_id after defer, do not log error if operator has no run_id set #34270

Merged
merged 2 commits into from
Sep 11, 2023

Conversation

mobuchowski
Copy link
Contributor

In the original PR, the OpenLineage implementation required having self.run_id attribute being set up on DbtCloudRunJobOperator. This was not the case if the operator was used in deferrable mode.

In this PR, we both set this attribute on execute_complete, and defensively check for it in OpenLineage method implementation.

…r has no run_id set

Signed-off-by: Maciej Obuchowski <obuchowski.maciej@gmail.com>
@potiuk
Copy link
Member

potiuk commented Sep 11, 2023

(pending fixing tests :) )

Signed-off-by: Maciej Obuchowski <obuchowski.maciej@gmail.com>
@eladkal eladkal merged commit 87fd884 into main Sep 11, 2023
42 checks passed
@eladkal eladkal deleted the openlineage-fix-dbt-no-run-id-on-defer branch September 11, 2023 19:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants