Skip to main content

datacontract import spark

Import a data contract from a Spark schema.

datacontract import spark [OPTIONS]
OptionDefaultDescription
--tablesComma-separated list of Spark table names to import from the current Spark session.
--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 spark --tables orders,customers --output datacontract.yaml

Guide: Import: Spark.