Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

#### Improvements
* `dbt-core` is now capped at `<2.0`, and `dbt-common` and `agate` are declared as direct dependencies, matching dbt-labs adapters ([#776](https://github.com/ClickHouse/dbt-clickhouse/pull/776)).
* `persist_docs` now warns about columns documented in the schema yml that do not exist in the relation ([#798](https://github.com/ClickHouse/dbt-clickhouse/pull/798)).

#### Repository maintenance
* The shard-local table name of distributed materializations is now resolved in one place, `clickhouse_local_relation`, instead of being rebuilt inline in each materialization and incremental strategy ([#753](https://github.com/ClickHouse/dbt-clickhouse/pull/753)).
Expand Down
1 change: 1 addition & 0 deletions dbt/include/clickhouse/macros/persist_docs.sql
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

{%- if for_columns and config.persist_column_docs() and model.columns -%}
{% set existing_columns = adapter.get_columns_in_relation(relation) | map(attribute="name") | list %}
{% do validate_doc_columns(relation, model.columns, existing_columns) %}
{% for column_name in model.columns if (column_name in existing_columns) %}
{%- set comment = model.columns[column_name]['description'] -%}
{%- if comment %}
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ classifiers = [
]
requires-python = ">=3.10"
dependencies = [
"dbt-adapters>=1.22.0,<1.25.0", # This version should be dbt-adapters<2.0, but keeping it fixed for now to avoid unexpected issues. We need to frequently update it.
"dbt-adapters>=1.22.10,<1.25.0", # This version should be dbt-adapters<2.0, but keeping it fixed for now to avoid unexpected issues. We need to frequently update it.
# installed via dbt-adapters but used directly
"dbt-common>=1.36,<2.0",
"agate>=1.0,<2.0",
Expand All @@ -45,7 +45,7 @@ Slack = "https://clickhouse.com/slack"
[dependency-groups]
dev = [
"dbt-core==1.12.*",
"dbt-tests-adapter>=1.10,<2.0",
"dbt-tests-adapter>=1.20,<2.0",
"pytest>=7.2.0",
"pytest-dotenv==0.5.2",
"pytest-timeout==2.4.0",
Expand Down
137 changes: 0 additions & 137 deletions tests/integration/adapter/persist_docs/fixtures.py

This file was deleted.

Loading
Loading