-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/dbt-labs/dbt-adapters into …
…mcknight/ct-2819
- Loading branch information
Showing
29 changed files
with
262 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
## dbt-adapters 1.3.2 - July 02, 2024 | ||
|
||
### Under the Hood | ||
|
||
* Fix query timer resolution | ||
* Add optional release_connection parameter to connection_named method |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
kind: Fixes | ||
body: Fix scenario where using the `--empty` flag causes metadata queries to contain limit clauses | ||
time: 2024-07-02T16:19:35.457997-04:00 | ||
custom: | ||
Author: mikealfare | ||
Issue: "213" |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
kind: Under the Hood | ||
body: --limit flag no longer subshells the query. This resolves the dbt Cloud experience | ||
issue where limit prevents ordering elements.. | ||
time: 2024-06-24T23:19:55.611142-07:00 | ||
custom: | ||
Author: versusfacit | ||
Issue: "207" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -154,3 +154,13 @@ cython_debug/ | |
|
||
# PyCharm | ||
.idea/ | ||
|
||
# MacOS | ||
.DS_Store | ||
|
||
# vscode | ||
.vscode/ | ||
.venv/ | ||
|
||
# Vim | ||
*.swp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,111 @@ | ||
model_input_sql = """ | ||
select 1 as id | ||
""" | ||
|
||
ephemeral_model_input_sql = """ | ||
{{ config(materialized='ephemeral') }} | ||
select 2 as id | ||
""" | ||
|
||
raw_source_csv = """id | ||
3 | ||
""" | ||
|
||
|
||
model_sql = """ | ||
select * | ||
from {{ ref('model_input') }} | ||
union all | ||
select * | ||
from {{ ref('ephemeral_model_input') }} | ||
union all | ||
select * | ||
from {{ source('seed_sources', 'raw_source') }} | ||
""" | ||
|
||
|
||
model_inline_sql = """ | ||
select * from {{ source('seed_sources', 'raw_source') }} as raw_source | ||
""" | ||
|
||
schema_sources_yml = """ | ||
sources: | ||
- name: seed_sources | ||
schema: "{{ target.schema }}" | ||
tables: | ||
- name: raw_source | ||
""" | ||
|
||
|
||
SEED = """ | ||
my_id,my_value | ||
1,a | ||
2,b | ||
3,c | ||
""".strip() | ||
|
||
|
||
SCHEMA = """ | ||
version: 2 | ||
seeds: | ||
- name: my_seed | ||
description: "This is my_seed" | ||
columns: | ||
- name: id | ||
description: "This is my_seed.my_id" | ||
""" | ||
|
||
CONTROL = """ | ||
select * from {{ ref("my_seed") }} | ||
""" | ||
|
||
|
||
GET_COLUMNS_IN_RELATION = """ | ||
{{ config(materialized="table") }} | ||
{% set columns = adapter.get_columns_in_relation(ref("my_seed")) %} | ||
select * from {{ ref("my_seed") }} | ||
""" | ||
|
||
|
||
ALTER_COLUMN_TYPE = """ | ||
{{ config(materialized="table") }} | ||
{{ alter_column_type(ref("my_seed"), "MY_VALUE", "varchar") }} | ||
select * from {{ ref("my_seed") }} | ||
""" | ||
|
||
|
||
ALTER_RELATION_COMMENT = """ | ||
{{ config( | ||
materialized="table", | ||
persist_docs={"relations": True}, | ||
) }} | ||
select * from {{ ref("my_seed") }} | ||
""" | ||
|
||
|
||
ALTER_COLUMN_COMMENT = """ | ||
{{ config( | ||
materialized="table", | ||
persist_docs={"columns": True}, | ||
) }} | ||
select * from {{ ref("my_seed") }} | ||
""" | ||
|
||
|
||
ALTER_RELATION_ADD_REMOVE_COLUMNS = """ | ||
{{ config(materialized="table") }} | ||
{% set my_seed = adapter.Relation.create(this.database, this.schema, "my_seed", "table") %} | ||
{% set my_column = api.Column("my_column", "varchar") %} | ||
{% do alter_relation_add_remove_columns(my_seed, [my_column], none) %} | ||
{% do alter_relation_add_remove_columns(my_seed, none, [my_column]) %} | ||
select * from {{ ref("my_seed") }} | ||
""" | ||
|
||
|
||
TRUNCATE_RELATION = """ | ||
{{ config(materialized="table") }} | ||
{% set my_seed = adapter.Relation.create(this.database, this.schema, "my_seed", "table") %} | ||
{{ truncate_relation(my_seed) }} | ||
select * from {{ ref("my_seed") }} | ||
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
version = "1.3.1" | ||
version = "1.3.2" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.