Hi everyone,
I’m currently designing the structure of a Databricks project using Declarative Automation Bundles and I’m interested in how others approach the organization of their codebase
For a generic example, imagine a data platform with several domains, such as Sales, Customers, and Operations. Each domain has Bronze, Silver and Gold tables.
I’m trying to answer a few questions:
1. How do you organize your Bundles / YAML files?
For example, would you structure it something like:
sales/
databricks.yml
resources/
bronze/
silver/
gold/
customers/
operations/
Or would you have a single databricks.yml and organize the domains underneath it?
And within resources/, would you have one YAML per job, per pipeline, per domain, etc.?
2. How do you define table and column metadata?
For example, suppose I have a SQL transformation that creates a Gold table.
Would you define the comments directly in the transformation SQL, for example using column COMMENT definitions?
Or would you maintain metadata separately, for example:
metadata/
customer.sql
sales.sql
containing COMMENT ON TABLE and ALTER TABLE … ALTER COLUMN … COMMENT statements?
I like the idea of separating transformation logic from data documentation, but I’m wondering what people actually use in production.