Skip to content

docs: BigQuery Data Lineage API permission for column-level lineage - #2425

Merged
haritamar merged 4 commits into
docsfrom
core-1801-bigquery-data-lineage-permission
Dec 6, 2026
Merged

haritamar merged 4 commits into
docsfrom
core-1801-bigquery-data-lineage-permission

Conversation

@haritamar

@haritamar haritamar commented Nov 29, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Elementary Cloud now builds BigQuery timed lineage from INFORMATION_SCHEMA.JOBS (table-level) plus the Google Data Lineage API (column-level). The API needs the API enabled and roles/datalineage.viewer in each project where jobs run, which the setup docs didn't mention.

Adds an optional "grant access to the Data Lineage API" section (enable datalineage.googleapis.com + grant Data Lineage Viewer per project) to:

  • snippets/dwh/bigquery/grant_user_access_on_dataset_level.mdx (service account flow)
  • snippets/dwh/bigquery/cloud_wif.mdx (WIF flow)

and lists the role as optional in snippets/cloud/integrations/bigquery.mdx.

The matching permission check is elementary-internal#8279. mintlify broken-links passes.

Link to Devin session: https://app.devin.ai/sessions/4a47615de52f41bfb5d551081883189c
Open in Devin Desktop: https://app.devin.ai/desktop/session/4a47615de52f41bfb5d551081883189c?variant=devin
Requested by: @haritamar


👀 1 finding for you to triage · Follow Devin's work

Devin Review

Co-Authored-By: Itamar Hartstein <haritamar@gmail.com>
@devin-ai-integration

Copy link
Copy Markdown
Contributor

I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".

  • Disable automatic comment, CI, and merge conflict monitoring

@linear

linear Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

CORE-1614

CORE-1801

@coderabbitai

coderabbitai Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Essentials
  • Run ID: 91324d3a-82b0-4264-89d1-f24fc077f5dd

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@jonlevine7

jonlevine7 commented Nov 29, 2026 •

Copy link
Copy Markdown

✅ Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
✅ Open Source Security 0 0 0 0 0 issues
✅ Licenses 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

devin-ai-integration Bot and others added 2 commits November 29, 2026 22:40
Co-Authored-By: Itamar Hartstein <haritamar@gmail.com>
Co-Authored-By: Itamar Hartstein <haritamar@gmail.com>

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 5 findings. Devin fixed 4 findings; 1 finding is left for you to triage below.

Fixed by Devin (4)
  • Lineage API caller project — Elementary searches lineage with the job project as parent. The docs now also say to enable the API in the project that owns the credentials, if it is a different project.
  • Duplicated lineage setup instructions — Moved the steps into a shared snippet, data_lineage_permissions.mdx, which both auth flows import.
  • Unclear scope of API enablement failures — The closing paragraph now says a disabled API in the credentials project means no column-level lineage at all.
  • Required enablement outside setup steps — The credentials-project enablement is now numbered step 3.

View findings in Devin Review · Follow Devin's work

Devin Review

Comment on lines +34 to 38
<DataLineagePermissions />

#### Step 2: Grant dataset-level role on the Elementary dataset

This role provides read access to your Elementary schema data.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔍 No warning about lineage charges

Enabling the Data Lineage API starts billable processing and metadata storage for supported services with ingestion enabled. The writing guide calls for a warning before actions with side effects.

Devin left this for you to triage: I haven't verified Google's current billing for lineage ingestion after the API is enabled. If it is billed, add a Note linking Dataplex pricing before the enable step.

(Refers to this code)

Devin Review


Was this helpful? React with 👍 or 👎 to provide feedback.

…e API

Co-Authored-By: Itamar Hartstein <haritamar@gmail.com>
@haritamar
haritamar merged commit 8800ca3 into docs Dec 6, 2026
8 of 9 checks passed
@haritamar
haritamar deleted the core-1801-bigquery-data-lineage-permission branch December 6, 2026 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants