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,17 @@ 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"/>


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

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

The following 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 helps you avoid issues where `describe extended` truncates information when the type is a complex struct. However, this setting is not yet the default behavior, as there are performance impacts due to a Databricks metadata limitation because of the need to run `REPAIR TABLE {{relation}} SYNC METADATA` before querying to ensure the `information_schema` is complete.

This flag will become the default behavior when this additional query is no longer needed.

### 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 write notebooks to `/Users/{{current user}}/{{catalog}}/{{schema}}/` Writing to the `Shared` folder is deprecated by Databricks as it does not align with governance best practices.

We plan to promote this flag to maturity in v1.10.0.

Check warning on line 26 in website/docs/reference/global-configs/databricks-changes.md

View workflow job for this annotation

GitHub Actions / Vale linting

[vale] reported by reviewdog 🐶 [custom.Typos] Oops there's a typo -- did you really mean 'v1.10.0'? Raw Output: {"message": "[custom.Typos] Oops there's a typo -- did you really mean 'v1.10.0'? ", "location": {"path": "website/docs/reference/global-configs/databricks-changes.md", "range": {"start": {"line": 26, "column": 45}}}, "severity": "WARNING"}
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