datacontract import iceberg
Import a data contract from an Iceberg schema file or a REST catalog.
datacontract import iceberg [OPTIONS]
| Option | Default | Description |
|---|---|---|
--source | — | Path to the Iceberg schema JSON file. Omit to read from a REST catalog. |
--table | — | Table name to assign to the model created from the Iceberg schema, or the table to load from the catalog. |
--catalog-url | — | REST catalog endpoint to load the table from (DATACONTRACT_ICEBERG_CATALOG_URL). |
--catalog | — | Name of the catalog (DATACONTRACT_ICEBERG_CATALOG). |
--namespace | — | Namespace of the table in the catalog (DATACONTRACT_ICEBERG_NAMESPACE). |
--warehouse | — | Warehouse passed to the catalog (DATACONTRACT_ICEBERG_WAREHOUSE). |
--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 |
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.