Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Patch 10 #6368

Merged
merged 10 commits into from
Oct 31, 2024
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,18 @@ Some adapters can display behavior changes when certain flags are enabled. The f

<div className="grid--3-col">

<Card
title="Databricks"
body="Behavior changes for the Databricks adapter."
link="reference/global-configs/databricks-changes"
icon="databricks"/>

</div>
matthewshaver marked this conversation as resolved.
Show resolved Hide resolved

<Card
title="Redshift"
body="Behavior changes for the Amazon Redshift adapter."
link="reference/global-configs/redshift-changes"
icon="redshift"/>

</div>
</div>
29 changes: 29 additions & 0 deletions website/docs/reference/global-configs/databricks-changes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
title: "Databricks adapter behavior changes"
id: "databricks-changes"
sidebar: "Databricks"
---

## Behavior Changes

Here are the current [behavior change flags](/docs/reference/global-configs/behavior-changes.md#behavior-change-flags) that are specific to `dbt-databricks`:

| Flag | `dbt-databricks`: Intro | `dbt-databricks`: Maturity |
amychen1776 marked this conversation as resolved.
Show resolved Hide resolved
Copy link
Contributor

@matthewshaver matthewshaver Oct 29, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@amychen1776 and @benc-db If we're going to add this table, can we handle it the same as we do the Core behavior change table and include the dbt Cloud intro and maturity dates?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can take this as a follow up

| ----------------------------- | ----------------------- | -------------------------- |
| `use_info_schema_for_columns` | 1.9.0 | TBD |
| `use_user_folder_for_python` | 1.9.0 | TBD |

### Use information schema for columns

The `use_info_schema_for_columns` flag is `False` by default.
Setting this flag to `True` will use `information_schema`, rather than `describe extended`, to get column metadata for Unity Catalog tables.
This setting is to avoid issues where `describe extended` truncates type information when the type is a complex struct;
however, this setting is not ready to be default behavior, as in order to ensure that `information_schema` is complete, we must run `REPAIR TABLE {{relation}} SYNC METADATA` prior to querying, which adds overhead.
This flag cannot be considered for maturity until we no longer need to add this overhead to every incremental materialization.
benc-db marked this conversation as resolved.
Show resolved Hide resolved

### Use user's folder for Python model notebooks

The `use_user_folder_for_python` flag is `False` by default, and results in writing uploaded python model notebooks to `/Shared/dbt_python_models/{{schema}}/`.
Setting this flag to `True` will instead write notebooks to `/Users/{{current user}}/{{catalog}}/{{schema}}/`
Writing to the `Shared` folder is being deprecated by Databricks as not following governance best practices.
benc-db marked this conversation as resolved.
Show resolved Hide resolved
We plan to promote this flag to maturity in 1.10.0.
1 change: 1 addition & 0 deletions website/sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -1104,6 +1104,7 @@ const sidebarSettings = {
link: { type: "doc", id: "reference/global-configs/adapter-behavior-changes" },
items: [
"reference/global-configs/adapter-behavior-changes",
"reference/global-configs/databricks-changes",
"reference/global-configs/redshift-changes",
],
},
Expand Down
Loading