Skip to main content

datacontract import dremio

Import a data contract from the tables and views in a Dremio source, space or folder.

datacontract import dremio [OPTIONS]
OptionDefaultDescription
--source—The host of the Dremio web console and REST API.
--port—The port of the Dremio REST API (default 9047).
--schema—The path of the source, space or folder, its names separated by periods, e.g. lake.sales.marts. A name with a period of its own goes in double quotes: $scratch."bucket.v1".raw
--table—Name of a table or view to import (repeat for multiple, omit for all in the path).
--output—File path where the Data Contract will be saved. If not provided, it will be printed to stdout.
--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 dremio --source localhost --schema lake.sales.marts --output datacontract.yaml

Guide: Import: Dremio.