Repository navigation
docs: BigQuery Data Lineage API permission for column-level lineage - #2425
Conversation
Co-Authored-By: Itamar Hartstein <haritamar@gmail.com>
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
Co-Authored-By: Itamar Hartstein <haritamar@gmail.com>
Co-Authored-By: Itamar Hartstein <haritamar@gmail.com>
There was a problem hiding this comment.
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.
| <DataLineagePermissions /> | ||
|
|
||
| #### Step 2: Grant dataset-level role on the Elementary dataset | ||
|
|
||
| This role provides read access to your Elementary schema data. |
There was a problem hiding this comment.
🔍 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)
Was this helpful? React with 👍 or 👎 to provide feedback.
…e API Co-Authored-By: Itamar Hartstein <haritamar@gmail.com>
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 androles/datalineage.viewerin 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-linkspasses.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