datacontract-cli
datacontract-cli copied to clipboard
Feature Request: Update Only Comments/Descriptions in Data Contract CLI Without Creating or Replacing Tabl
Background:
Currently, when using the Databricks CLI to apply changes to a data contract, any update — including to metadata like comments or descriptions — results in a CREATE OR REPLACE TABLE command. This can be risky and unnecessary if the only intended change is to update documentation fields.
Proposition:
- Introduce a CLI flag or command (e.g., --update-metadata-only) that updates only the comment and description fields of a table.
- Ensure that when this flag is used, the table schema and data remain untouched.
- The command should not issue a CREATE OR REPLACE TABLE statement, but rather a targeted metadata update (such as ALTER TABLE ... SET COMMENT).
Thank you for considering this enhancement!
it's related to the PR #790