Skip to main content

datacontract import bigquery

Import a data contract from BigQuery.

datacontract import bigquery [OPTIONS]
OptionDefaultDescription
--source—Path to a BigQuery schema JSON file. If omitted, imports from the BigQuery API using --project/--dataset/--table.
--project—The BigQuery project id.
--dataset—The BigQuery dataset id.
--table—List of table ids to import from the BigQuery API (repeat for multiple table ids, leave empty for all tables in the dataset).
--output—File path where the Data Contract will be saved. If not provided, it will be printed to stdout.
--json-schema—The location (url or path) of the ODCS JSON Schema
--owner—The owner or team responsible for managing the data contract.
--id—The identifier for the data contract.
--debug / --no-debug—Enable debug logging
datacontract import bigquery --project my-project --dataset my_dataset --output datacontract.yaml

Guide: Import: BigQuery.