Skip to content

Commit

Permalink
Merge branch 'current' into beta
Browse files Browse the repository at this point in the history
  • Loading branch information
mirnawong1 authored Mar 9, 2024
2 parents 6cb0f2b + 0f36232 commit e5bcb1a
Show file tree
Hide file tree
Showing 12 changed files with 28 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ your_profile_name:

- SQLite does not allow views in one schema (i.e. database file) to reference objects in another schema. You'll get this error from SQLite: "view [someview] cannot reference objects in database [somedatabase]". You must set `materialized='table'` in models that reference other schemas.

- Materializations are simplified: they drop and re-create the model, instead of doing the backup-and-swap-in new model that the other dbt database adapters support. This choice was made because SQLite doesn't support `DROP ... CASCADE` or `ALTER VIEW` or provide information about relation dependencies in something information_schema-like. These limitations make it really difficult to make the backup-and-swap-in functionality work properly. Given how SQLite aggressively [locks](https://sqlite.org/lockingv3.html the database anyway, it's probably not worth the effort.
- Materializations are simplified: they drop and re-create the model, instead of doing the backup-and-swap-in new model that the other dbt database adapters support. This choice was made because SQLite doesn't support `DROP ... CASCADE` or `ALTER VIEW` or provide information about relation dependencies in something information_schema-like. These limitations make it really difficult to make the backup-and-swap-in functionality work properly. Given how SQLite aggressively [locks](https://sqlite.org/lockingv3.html) the database anyway, it's probably not worth the effort.

## SQLite Extensions

Expand Down
6 changes: 3 additions & 3 deletions website/docs/docs/supported-data-platforms.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ There are two types of adapters available today:
1. Does it work?
2. Does anyone "own" the code, or is anyone liable for ensuring it works?
3. Do bugs get fixed quickly?
4. Does it stay up-to-date with new Core features?
4. Does it stay up-to-date with new dbt Core features?
5. Is the usage substantial enough to self-sustain?
pendency on this library?
6. Do other known projects depend on this library?

</details>
</details>
4 changes: 2 additions & 2 deletions website/docs/guides/custom-cicd-pipelines.md
Original file line number Diff line number Diff line change
Expand Up @@ -261,8 +261,8 @@ jobs:
DBT_JOB_BRANCH: ${{ github.ref_name }}

steps:
- uses: "actions/checkout@v3"
- uses: "actions/setup-python@v4"
- uses: "actions/checkout@v4"
- uses: "actions/setup-python@v5"
with:
python-version: "3.9"
- name: Run dbt Cloud job
Expand Down
2 changes: 1 addition & 1 deletion website/docs/reference/dbt-jinja-functions/builtins.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ From dbt v1.5 and higher, use the following macro to extract user-provided argum
```
{% macro ref() %}
-- extract user-provided positional and keyword arguments
{% set version = kwargs.get('version') %}
{% set version = kwargs.get('version') or kwargs.get('v') %}
{% set packagename = none %}
{%- if (varargs | length) == 1 -%}
{% set modelname = varargs[0] %}
Expand Down
2 changes: 1 addition & 1 deletion website/docs/reference/resource-properties/freshness.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ loaded_at_field: "CAST(completed_date AS TIMESTAMP)"
If using a non-UTC timestamp, cast it to UTC first:
```yml
loaded_at_field: "convert_timezone('UTC', 'Australia/Sydney', created_at_local)"
loaded_at_field: "convert_timezone('Australia/Sydney', 'UTC', created_at_local)"
```
## count
Expand Down
24 changes: 12 additions & 12 deletions website/snippets/_adapters-trusted.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,17 @@
padding: 0rem 0.75rem; display:inline-block'>dbt Core</div>"
icon="alloydb"/>

<Card
title="Apache Spark"
body="<ul><li><a href='/docs/cloud/connect-data-platform/connect-apache-spark'>Set up in dbt Cloud </a> <br /></li><li><a href='/docs/core/connect-data-platform/spark-setup'>Install with dbt Core </a> </li></ul> <br /> <a href=https://badge.fury.io/py/dbt-spark><img src=https://badge.fury.io/py/dbt-spark.svg/></a><br /><br /><div style='background: #E5E7EB;
border-radius: 1.5rem;
color:#262A38;
padding: 0rem 0.75rem; display:inline-block'>dbt Cloud</div> <div style=' background: #E5E7EB;
border-radius: 1.5rem;
color:#262A38;
padding: 0rem 0.75rem; display:inline-block'>dbt Core</div>"
icon="apache-spark"/>

<Card
title="Athena"
body="<ul><li><a href='/docs/core/connect-data-platform/athena-setup'>Install with dbt Core </a> </li> </ul><br /><br /><a href=https://badge.fury.io/py/dbt-athena-community><img src=https://badge.fury.io/py/dbt-athena-community.svg/></a><br /><br /><div style='background: #E5E7EB;
Expand Down Expand Up @@ -103,7 +114,7 @@
border-radius: 1.5rem;
color:#262A38;
padding: 0rem 0.75rem; display:inline-block'>dbt Core</div>"
icon="redshift"/>
icon="postgres"/>

<Card
title="Redshift"
Expand All @@ -127,17 +138,6 @@
padding: 0rem 0.75rem; display:inline-block'>dbt Core</div>"
icon="snowflake"/>

<Card
title="Spark"
body="<ul><li><a href='/docs/cloud/connect-data-platform/connect-apache-spark'>Set up in dbt Cloud </a> <br /></li><li><a href='/docs/core/connect-data-platform/spark-setup'>Install with dbt Core </a> </li></ul> <br /> <a href=https://badge.fury.io/py/dbt-spark><img src=https://badge.fury.io/py/dbt-spark.svg/></a><br /><br /><div style='background: #E5E7EB;
border-radius: 1.5rem;
color:#262A38;
padding: 0rem 0.75rem; display:inline-block'>dbt Cloud</div> <div style=' background: #E5E7EB;
border-radius: 1.5rem;
color:#262A38;
padding: 0rem 0.75rem; display:inline-block'>dbt Core</div>"
icon="databricks"/>

<Card
title="Starburst/Trino"
body="<ul><li><a href='/docs/cloud/connect-data-platform/connect-starburst-trino'>Set up in dbt Cloud </a> <br /></li><li><a href='/docs/core/connect-data-platform/trino-setup'>Install with dbt Core </a> </li></ul> <br /> <a href=https://badge.fury.io/py/dbt-trino><img src=https://badge.fury.io/py/dbt-trino.svg/></a><br /><br /><div style='background: #E5E7EB;
Expand Down
4 changes: 2 additions & 2 deletions website/snippets/quickstarts/_build-your-first-model.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ with customers as (
first_name,
last_name

from `dbt-tutorial`.jaffle_shop.customers
from raw.jaffle_shop.customers

),

Expand All @@ -30,7 +30,7 @@ orders as (
order_date,
status

from `dbt-tutorial`.jaffle_shop.orders
from raw.jaffle_shop.orders

),

Expand Down
4 changes: 2 additions & 2 deletions website/snippets/quickstarts/change-way-model-materialized.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ By default, everything gets created as a view. You can override that at the dire
models:
jaffle_shop:
+materialized: table
example:
+materialized: view
example:
+materialized: view
```

</File>
Expand Down
1 change: 1 addition & 0 deletions website/static/img/icons/apache-spark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions website/static/img/icons/postgres.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions website/static/img/icons/white/apache-spark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions website/static/img/icons/white/postgres.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit e5bcb1a

Please sign in to comment.