Skip to main content

datacontract import iceberg

Import a data contract from an Iceberg schema file or a REST catalog.

datacontract import iceberg [OPTIONS]
OptionDefaultDescription
--sourcePath to the Iceberg schema JSON file. Omit to read from a REST catalog.
--tableTable name to assign to the model created from the Iceberg schema, or the table to load from the catalog.
--catalog-urlREST catalog endpoint to load the table from (DATACONTRACT_ICEBERG_CATALOG_URL).
--catalogName of the catalog (DATACONTRACT_ICEBERG_CATALOG).
--namespaceNamespace of the table in the catalog (DATACONTRACT_ICEBERG_NAMESPACE).
--warehouseWarehouse passed to the catalog (DATACONTRACT_ICEBERG_WAREHOUSE).
--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
Examples: datacontract import iceberg --source schema.json --table orders --output datacontract.yaml; datacontract import iceberg --catalog-url https://polaris.example.com/api/catalog --namespace sales --table orders

Guide: Import: Iceberg.