marmotdata/bigquery
Discover datasets and tables from Google BigQuery projects
The BigQuery plugin discovers datasets, tables, views, and external tables from Google BigQuery projects. It captures schemas, statistics, and lineage relationships.
Required Permissions
Assign roles/bigquery.metadataViewer to your service account, or these individual permissions:
bigquery.datasets.getbigquery.tables.getbigquery.tables.list
Keyless authentication
On Marmot Cloud or Marmot Enterprise the pipeline can present its own identity instead of a service account key. Set workload_identity_provider to a Workload Identity Federation provider that trusts your Marmot instance as an OIDC issuer, and grant the pipeline's subject, pipeline:<name> as reported by the pipeline API, the role above directly (principal://iam.googleapis.com/<pool>/subject/pipeline:<name>), or grant it roles/iam.workloadIdentityUser on a service account named in service_account. No key exists anywhere; Marmot mints a short-lived token for each run.
Querying
The plugin can run read-only data queries against this source. Every statement is first validated with a BigQuery dry run, which is free and has no side effects: anything that is not a plain SELECT, including scripts, DDL, DML and EXPORT DATA statements, is refused before it ever reaches a real job. The same dry run maps the tables and views the statement reads to the assets discovery catalogued, so grants written against those assets apply to the query too; a statement that calls EXTERNAL_QUERY is treated as reading more than the plan can name, since the external database's own tables never appear in it.
BigQuery has no read-only session or transaction to run a statement under, so the real boundary is the service account's IAM: grant it roles/bigquery.dataViewer on the datasets it may query and roles/bigquery.jobUser on the billing project, and nothing more. max_bytes_billed additionally caps the bytes a single query may bill for, 10GiB by default; BigQuery fails the query rather than exceed it. Set it to 0 to fall back to the project's own default limit instead.
In the UI
Point and click, no config file needed.
- Open Runs and choose Create pipeline.
- Pick Google BigQuery from the plugin list.
- Fill in the settings, set a schedule and save.
With the CLI
Save a YAML config, then run marmot ingest.
Not using plugins? Other ways to populate Marmot
Configuration
Fields marked Required must be set.
tagsList of textTags to apply to discovered assets
external_linksList of groupsExternal links to show on all assets
nameTextDisplay name for the link
iconTextIcon identifier for the link
urlTextURL to the external resource
filterGroup of settingsFilter discovered assets by name (regex)
includeList of textInclude patterns for resource names (regex)
excludeList of textExclude patterns for resource names (regex)
zoneTextTells this system apart from others of the same technology and becomes part of every asset's MRN
audienceTextAudience of the Marmot identity token. Derived from the credentials' federation settings; set it only when the cloud side expects another
project_idText RequiredGoogle Cloud Project ID
credentials_pathTextPath to service account credentials JSON file
credentials_jsonSecretService account credentials JSON content
use_default_credentialsYes or noUse default Google Cloud credentials
workload_identity_providerTextWorkload Identity Federation provider to exchange the Marmot identity token at, projects/<number>/locations/global/workloadIdentityPools/<pool>/providers/<provider>. Setting it federates: no key is needed; grant the pipeline's subject roles/bigquery.metadataViewer on the project
service_accountTextService account to impersonate after the exchange; empty acts as the federated principal directly
include_datasetsYes or noWhether to discover datasets
include_table_statsYes or noWhether to include table statistics (row count, size)
include_viewsYes or noWhether to discover views
include_external_tablesYes or noWhether to discover external tables
exclude_system_datasetsYes or noWhether to exclude system datasets (_script, _analytics, etc.)
max_concurrent_requestsNumberMaximum number of concurrent API requests
max_bytes_billedNumberCaps the bytes a data query may bill for; BigQuery fails the query rather than exceed it. Defaults to 10GiB (10737418240); set to 0 to fall back to the project's own default limit instead
Assets emitted
Metadata this plugin attaches to each discovered asset.