datacontract-cli icon indicating copy to clipboard operation
datacontract-cli copied to clipboard

Feature Request: Update Only Comments/Descriptions in Data Contract CLI Without Creating or Replacing Tabl

Open EmanuelMarioJoos opened this issue 5 months ago • 1 comments

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!

EmanuelMarioJoos avatar Sep 01 '25 16:09 EmanuelMarioJoos

it's related to the PR #790

dmaresma avatar Sep 09 '25 13:09 dmaresma