datacontract / datacontract-cli

CLI to manage your datacontract.yaml files
https://cli.datacontract.com
Other
491 stars 95 forks source link

Import from parquet does not work #525

Closed q0-0n closed 3 hours ago

q0-0n commented 5 days ago

Running the command:

datacontract import --format parquet --source localpathtoparquetfile.snappy.parquet

Results in the following error message:

Usage: datacontract import [OPTIONS]
Try 'datacontract import --help' for help.
╭─ Error ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ Invalid value for '--format': 'parquet' is not one of 'sql', 'avro', 'dbt', 'dbml', 'glue', 'jsonschema', 'bigquery', 'odcs', 'unity', 'spark', 'iceberg'.                │
╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

Expected behavior: creation of local datacontract YAML file.

The value "parquet" for format should be correct. See documentation: https://github.com/datacontract/datacontract-cli?tab=readme-ov-file#import

Version: 0.10.14

jochenchrist commented 2 days ago

Support for parquet import will be available with v0.10.15.

We'll do a release shortly.

simonharrer commented 3 hours ago

Release is now available: https://github.com/datacontract/datacontract-cli/releases/tag/v0.10.15