Skip to content

Commit

Permalink
remind vistors to dbt-spark to use dbt-databricks (dbt-labs#3510)
Browse files Browse the repository at this point in the history
## What are you changing in this pull request and why?
<!---
Describe your changes and why you're making them. If linked to an open
issue or a pull request on dbt Core, then link to them here! 

To learn more about the writing conventions used in the dbt Labs docs,
see the [Content style
guide](https://github.com/dbt-labs/docs.getdbt.com/blob/current/contributing/content-style-guide.md).
-->

replacement for dbt-labs#3506. adds the reminder and a redirect to three
`dbt-spark` pages

## Checklist
<!--
Uncomment if you're publishing docs for a prerelease version of dbt
(delete if not applicable):
- [ ] Add versioning components, as described in [Versioning
Docs](https://github.com/dbt-labs/docs.getdbt.com/blob/current/contributing/single-sourcing-content.md#versioning-entire-pages)
- [ ] Add a note to the prerelease version [Migration
Guide](https://github.com/dbt-labs/docs.getdbt.com/tree/current/website/docs/guides/migration/versions)
-->
- [ ] Review the [Content style
guide](https://github.com/dbt-labs/docs.getdbt.com/blob/current/contributing/content-style-guide.md)
and [About
versioning](https://github.com/dbt-labs/docs.getdbt.com/blob/current/contributing/single-sourcing-content.md#adding-a-new-version)
so my content adheres to these guidelines.
- [ ] Add a checklist item for anything that needs to happen before this
PR is merged, such as "needs technical review" or "change base branch."

Adding new pages (delete if not applicable):
- [ ] Add page to `website/sidebars.js`
- [ ] Provide a unique filename for the new page

Removing or renaming existing pages (delete if not applicable):
- [ ] Remove page from `website/sidebars.js`
- [ ] Add an entry `website/static/_redirects`
- [ ] [Ran link
testing](https://github.com/dbt-labs/docs.getdbt.com#running-the-cypress-tests-locally)
to update the links that point to the deleted page
  • Loading branch information
dataders authored Jun 13, 2023
2 parents c45cccc + 263b9d0 commit ecd7408
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ description: "Setup instructions for connecting Apache Spark to dbt Cloud"
sidebar_label: "Connect Apache Spark"
---

<Snippet src="dbt-databricks-for-databricks" />

:::note
See [Connect Databricks](#connect-databricks) for the Databricks version of this page.
:::

dbt Cloud supports connecting to an Apache Spark cluster using the HTTP method
or the Thrift method. Note: While the HTTP method can be used to connect to
an all-purpose Databricks cluster, the ODBC method is recommended for all
Expand Down
6 changes: 6 additions & 0 deletions website/docs/docs/core/connect-data-platform/spark-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,13 @@ meta:
config_page: '/reference/resource-configs/spark-configs'
---


<Snippet src="warehouse-setups-cloud-callout" />
<Snippet src="dbt-databricks-for-databricks" />

:::note
See [Databricks setup](#databricks-setup) for the Databricks version of this page.
:::

<h2> Overview of {frontMatter.meta.pypi_package} </h2>

Expand Down
6 changes: 6 additions & 0 deletions website/docs/reference/resource-configs/spark-configs.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ To-do:
- use the reference doc structure for this article/split into separate articles
--->

<Snippet src="dbt-databricks-for-databricks" />

:::note
See [Databricks configuration](#databricks-configs) for the Databricks version of this page.
:::

## Configuring tables

When materializing a model as `table`, you may include several optional configs that are specific to the dbt-spark plugin, in addition to the standard [model configs](/reference/model-configs).
Expand Down
4 changes: 4 additions & 0 deletions website/snippets/dbt-databricks-for-databricks.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
:::info If you're using Databricks, use `dbt-databricks`
If you're using Databricks, the `dbt-databricks` adapter is recommended over `dbt-spark`.
If you're still using dbt-spark with Databricks consider [migrating from the dbt-spark adapter to the dbt-databricks adapter](/guides/migration/tools/migrating-from-spark-to-databricks#migrate-your-dbt-projects).
:::

0 comments on commit ecd7408

Please sign in to comment.