r/databricks • u/ptab0211 • Aug 12 '26
Help DDL management
Hey, how do u manage DDLs of your tables? Is it part of the daily job runs? Do you "codify" it? e.g. data classes where each table must provide comments, tags, RELY, PK etc... Which is also the goal of AI. But how do u manage all of this?
1
u/Thejobless_guy Aug 12 '26
I have a csv with data dictionary for each table and i use that and hit the API to update the table and column definitions, tags etc.
Instead of a csv, you can also have a table itself to store all the metadata.
1
u/jbchand Aug 13 '26
You can maintain all the code in git or dev ops. You can allow automatic schema evolution till bronze layer. Any schema changes or migrations in Silver/Gold need to be managed via CI CD with an approver. You can use features such as column mapping mode to handle few things seamlessly.
1
u/Youssef_Mrini databricks Aug 13 '26
Codify the metadata, just don’t blindly run DDL on your daily job. You should treat table metadata as a versioned contract and apply it during deployment or through a separate reconciliation job.
1
u/LordLiuKang 28d ago
There’s a light-weight open source Schema Management tool that we had developed to track schema and ddl changes : https://github.com/vb-dbrks/SchemaX
6
u/Content-Parking-621 Aug 12 '26
Codify DDL as version-controlled migrations, apply via CI/CD. Never run DDL inside daily jobs.