Repository navigation
[v3-4-test] Snowflake, Databricks: emit query lineage via OpenLineage public API (#73655) - #76450
Merged
Merged
Conversation
…73655) * Snowflake, Databricks: emit query lineage via OpenLineage public API Snowflake and Databricks each duplicated their own logic for building and emitting per-query OpenLineage lineage events, instead of using the OpenLineage provider's own public API for that. This replaces both with calls to the provider's `emit_query_lineage` API. This also fixes a bug where the START and COMPLETE events for a query shared a single mutable Run/Job object, letting a facet added while emitting one event leak into, or get corrupted alongside, the other. * Fix expected-events fixture for the SQL hook-lineage job rename The hook-lineage query sub-job name changed from "...query.N" to "...hll_query.N" to avoid colliding with the "...query.N" naming used by the Snowflake/Databricks query-lineage emitters added in this PR. The policy/hook-lineage e2e fixture still expected the old name. * Bump openlineage version in pyproject.toml * pre commit # Conflicts: # uv.lock * address review comments (cherry picked from commit 22f86cb)
potiuk
approved these changes
Nov 4, 2026
potiuk
enabled auto-merge (squash)
November 4, 2026 14:12
Contributor
|
RunsOn re-runs them automatically when the run finishes; no action is needed. |
potiuk
disabled auto-merge
November 4, 2026 14:48
vatsrahul1001
added a commit
that referenced
this pull request
Nov 4, 2026
…73655) (#76450) * Snowflake, Databricks: emit query lineage via OpenLineage public API Snowflake and Databricks each duplicated their own logic for building and emitting per-query OpenLineage lineage events, instead of using the OpenLineage provider's own public API for that. This replaces both with calls to the provider's `emit_query_lineage` API. This also fixes a bug where the START and COMPLETE events for a query shared a single mutable Run/Job object, letting a facet added while emitting one event leak into, or get corrupted alongside, the other. * Fix expected-events fixture for the SQL hook-lineage job rename The hook-lineage query sub-job name changed from "...query.N" to "...hll_query.N" to avoid colliding with the "...query.N" naming used by the Snowflake/Databricks query-lineage emitters added in this PR. The policy/hook-lineage e2e fixture still expected the old name. * Bump openlineage version in pyproject.toml * pre commit # Conflicts: # uv.lock * address review comments (cherry picked from commit 22f86cb) Co-authored-by: Kacper Muda <[email protected]>
vatsrahul1001
added a commit
that referenced
this pull request
Nov 5, 2026
…73655) (#76450) * Snowflake, Databricks: emit query lineage via OpenLineage public API Snowflake and Databricks each duplicated their own logic for building and emitting per-query OpenLineage lineage events, instead of using the OpenLineage provider's own public API for that. This replaces both with calls to the provider's `emit_query_lineage` API. This also fixes a bug where the START and COMPLETE events for a query shared a single mutable Run/Job object, letting a facet added while emitting one event leak into, or get corrupted alongside, the other. * Fix expected-events fixture for the SQL hook-lineage job rename The hook-lineage query sub-job name changed from "...query.N" to "...hll_query.N" to avoid colliding with the "...query.N" naming used by the Snowflake/Databricks query-lineage emitters added in this PR. The policy/hook-lineage e2e fixture still expected the old name. * Bump openlineage version in pyproject.toml * pre commit # Conflicts: # uv.lock * address review comments (cherry picked from commit 22f86cb) Co-authored-by: Kacper Muda <[email protected]>
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.
Backport of #73655 ("Snowflake, Databricks: emit query lineage via OpenLineage public API") to
v3-4-test.Why: the OpenLineage e2e (
openlineage_policy_hook_lineage_dag→check_events) was failing on v3-4-test full-test PRs (e.g. #76431, #76436). Root cause (confirmed with OL maintainer): the e2e PROD image runs the latest released OL provider, which includes #73655 renaming SQL hook-lineage query jobs from<dag>.<task>.query.Nto<dag>.<task>.hll_query.N, but v3-4-test's in-tree tests still expectedquery.N→ mismatch ("no events emitted"). This backport brings both the provider-source rename and the matching expected-events to v3-4-test, realigning them with the released provider.Scope: 15 files — snowflake, databricks, and openlineage provider source + their unit/system tests + expected-events. Clean cherry-pick (no conflicts).
This is the targeted fix for the
t_with_sql_hook.query.1→hll_query.1failure. Other OL e2e DAGs, if any still fail, may need additional test backports (tracked separately).Was generative AI tooling used to co-author this PR?
Generated-by: Claude Code (Opus 4.8)