From cac2e5b9c83383d2b33e4dc75410e8a6e27b4cc5 Mon Sep 17 00:00:00 2001 From: Amy Chen <46451573+amychen1776@users.noreply.github.com> Date: Thu, 29 Aug 2024 09:47:24 -0400 Subject: [PATCH] Update databricks-configs.md with iceberg table example (#5989) ## What are you changing in this pull request and why? Updating to include an example of how to specify the iceberg table format. ## Checklist - [ ] I have reviewed the [Content style guide](https://github.com/dbt-labs/docs.getdbt.com/blob/current/contributing/content-style-guide.md) so my content adheres to these guidelines. - [ ] The topic I'm writing about is for specific dbt version(s) and I have versioned it according to the [version a whole page](https://github.com/dbt-labs/docs.getdbt.com/blob/current/contributing/single-sourcing-content.md#adding-a-new-version) and/or [version a block of content](https://github.com/dbt-labs/docs.getdbt.com/blob/current/contributing/single-sourcing-content.md#versioning-blocks-of-content) guidelines. - [ ] I have added checklist item(s) to this list for anything anything that needs to happen before this PR is merged, such as "needs technical review" or "change base branch." --------- Co-authored-by: Matt Shaver <60105315+matthewshaver@users.noreply.github.com> --- .../reference/resource-configs/databricks-configs.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/website/docs/reference/resource-configs/databricks-configs.md b/website/docs/reference/resource-configs/databricks-configs.md index ff580d2d8cf..de1bb075015 100644 --- a/website/docs/reference/resource-configs/databricks-configs.md +++ b/website/docs/reference/resource-configs/databricks-configs.md @@ -776,6 +776,15 @@ These properties are sent directly to Databricks without validation in dbt, so b One application of this feature is making `delta` tables compatible with `iceberg` readers using the [Universal Format](https://docs.databricks.com/en/delta/uniform.html). +```sql +{{ config( + tblproperties={ + 'delta.enableIcebergCompatV2' = 'true' + 'delta.universalFormat.enabledFormats' = 'iceberg' + } + ) }} +``` + `tblproperties` can be specified for python models, but they will be applied via an `ALTER` statement after table creation.