Mandatory Table Properties
Applies To: |
Framework Bundle |
Configuration Scope: |
Global |
Databricks Docs: |
The Mandatory Table Properties feature allows you to define a set of table properties that will be automatically applied to all tables created by the Framework. This ensures consistent table configurations across your data lakehouse.
Configuration
src/config/global.json|yaml under the mandatory_table_properties section.Configuration Schema
The mandatory table properties configuration are defined as key-value pairs as follows:
{
"mandatory_table_properties": {
"<property_name>": "<property_value>",
...
}
}
mandatory_table_properties:
<property_name>: <property_value>
...
Common Properties
Some commonly used table properties include:
Property |
Description |
Example Value |
|---|---|---|
delta.autoOptimize.optimizeWrite |
Enables write optimization for the table |
|
delta.autoOptimize.autoCompact |
Enables automatic file compaction |
|
delta.enableChangeDataFeed |
Enables Change Data Feed for the table |
|
delta.columnMapping.mode |
Specifies the column mapping mode |
|
comment |
Adds a description to the table |
|
Example Configuration
Here’s an example configuration that sets some common table properties:
{
"mandatory_table_properties": {
"delta.autoOptimize.optimizeWrite": "true",
"delta.autoOptimize.autoCompact": "true",
"delta.enableChangeDataFeed": "true",
"delta.columnMapping.mode": "name"
}
}
mandatory_table_properties:
delta.autoOptimize.optimizeWrite: 'true'
delta.autoOptimize.autoCompact: 'true'
delta.enableChangeDataFeed: 'true'
delta.columnMapping.mode: name
Note
All property values must be specified as strings, even for boolean values
Properties defined here will be applied to all tables created by the Framework
These properties cannot be overridden at the individual table level
Best Practice
It’s recommended to:
Enable auto-optimize features for better performance
Enable Change Data Feed if you need to track changes
Use column mapping to ensure schema evolution compatibility
Add meaningful table comments for documentation