Skip to main content

datacontract import bigquery

Import a data contract from BigQuery.

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

Guide: Import: BigQuery.