cdm_data_loaders.converters.cli.pyiceberg_to_jsonschema ¶
CLI interface for creating a JSON Schema dump of table schemas from an Iceberg catalog.
IcebergToJsonSchemaSettings ¶
Bases: IcebergCatalogDumpSettings
Settings for generating a set of JSONSchemas from an Iceberg data catalog.
Source code in src/cdm_data_loaders/converters/cli/pyiceberg_to_jsonschema.py
dump_catalog_schemas ¶
Iterate through a catalog and dump out the table schemas as JSONSchema.
A table that fails to load or convert is logged and skipped; it does not
abort the dump of the remaining tables. generated_at is stamped
identically on every table in a single run (it reflects the run, not each
table's individual read time). An existing output file for a table is
overwritten, with a warning logged first. With group_by_namespace,
each nonempty namespace produces one file whose $defs holds its table schemas.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
settings
|
IcebergToJsonSchemaSettings
|
Catalog name and output directory. |
required |