Document sourceCodeLocation facet requirement for dbt Core CI/CD#38327
Open
himakolavennu wants to merge 1 commit into
Open
Document sourceCodeLocation facet requirement for dbt Core CI/CD#38327himakolavennu wants to merge 1 commit into
himakolavennu wants to merge 1 commit into
Conversation
Drift Detection for dbt Core requires the sourceCodeLocation facet (with the pull request number) on OpenLineage events. This facet is opt-in in openlineage-dbt >= 1.46.0, so document the required OPENLINEAGE__FACETS__SOURCE_CODE_LOCATION__DISABLED=false env var and how the PR number is detected (GITHUB_REF / CI_MERGE_REQUEST_IID) or set explicitly. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Contributor
Preview links (active after the
|
himakolavennu
marked this pull request as ready for review
July 20, 2026 18:41
brett0000FF
approved these changes
Jul 20, 2026
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.
What does this PR do? What is the motivation?
Drift Detection for dbt Core requires the
sourceCodeLocationfacet (carrying the pull request number) on the OpenLineage events sent from CI. That facet is opt-in inopenlineage-dbt>= 1.46.0 (disabled=trueby default), so without configuration no facet is emitted and drift checks never run. The docs didn't mention this.This PR documents:
OPENLINEAGE__FACETS__SOURCE_CODE_LOCATION__DISABLED=falseenvironment variable (and the >= 1.46.0 version requirement) in the dbt Core setup.GITHUB_REF(GitHub Actions PR workflows) orCI_MERGE_REQUEST_IID(GitLab MR pipelines), or set explicitly viaOPENLINEAGE__FACETS__SOURCE_CODE_LOCATION__PULL_REQUEST_NUMBER.Merge readiness
AI assistance
Investigation, root-cause analysis, and initial draft with Claude Code; reviewed and edited manually.