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

Restructure and rephrase the latest CHANGELOG.md release section #346

Merged
merged 1 commit into from
Aug 30, 2024
Merged
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
53 changes: 31 additions & 22 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,28 +1,37 @@
### Release [1.8.2], 2024-08-22
### Bug Fix
* It is now possible to add sn empty seed without rows.
* Fix `__dbt_backup` dropping when working on cluster.
#### New Features
* [ClickHouse projections](https://clickhouse.com/docs/en/sql-reference/statements/alter/projection) are now fully supported for `table` materialization, and partly supported for `distributed_table` materialization.
The projection config should be added to the model config ([#342](https://github.com/ClickHouse/dbt-clickhouse/pull/342)), for instance:
```python
{{ config(
materialized='%s',
projections=[
{
'name': 'your_projection_name',
'query': 'your_projection_query'
}
]
) }}
```

#### Bug Fixes
* Until this release, when writing tests, it was not possible to pass empty seed data. ([#341](https://github.com/ClickHouse/dbt-clickhouse/pull/341))
* When a cluster was used, the adapter left a few `__dbt_backup` tables in the schema. After the fix, these backup tables are now properly dropped. ([#326](https://github.com/ClickHouse/dbt-clickhouse/pull/326))
* Due to [this GitHub change](https://github.com/actions/runner-images/issues/9692), we needed to adjust the `docker compose` command in our tests. ([#334](https://github.com/ClickHouse/dbt-clickhouse/pull/334))

#### Improvements
* You can now add projections to tables. The projection config should be added to the model config, for instance:
```python
{{ config(
materialized='%s',
projections=[
{
'name': 'your_projection_name',
'query': 'your_projection_query'
}
]
) }}
```
Please be aware that this feature was added to distributed materialization as well, but might not fully function.
* Added a new *experimental* incremental strategy - `insert_overwrite` was added which replaces existing data in a target table partition by partition, ensuring only the specified partitions are overwritten with new data, which helps maintain performance and data consistency. This feature was not tested with distribution models and might not work with such materializations.
[Anton Bryzgalov](https://github.com/bryzgaloff) Thank you for your contribution!
* Schema changes for incremental models were improved and now include a `sync_all_column` option. For more information please [review this PR](https://github.com/ClickHouse/dbt-clickhouse/pull/332).
[Can Bekleyici](https://github.com/canbekley) huge thanks for your contribution.
* Support query settings in `view` materialization.
* Improve `listagg` macro. [PR](https://github.com/ClickHouse/dbt-clickhouse/pull/318).

* Added a new **experimental** incremental strategy, `insert_overwrite`, which replaces existing data in a target table partition by partition. This ensures that only the specified partitions are overwritten, helping to maintain performance and data consistency. Note that this feature has not been tested with distributed models and may not work with such materializations.
[Anton Bryzgalov](https://github.com/bryzgaloff) Thank you for your contribution! ([#201](https://github.com/ClickHouse/dbt-clickhouse/pull/201))
* Schema changes for incremental models were improved and now include a `sync_all_column` option.
[Can Bekleyici](https://github.com/canbekley) huge thanks for your contribution. ([#332](https://github.com/ClickHouse/dbt-clickhouse/pull/332))
* Previously, view settings were only applied during view creation, not when querying the view. Starting with this release, the settings attribute will now also be applied when running queries on a view. ([#324](https://github.com/ClickHouse/dbt-clickhouse/pull/324))
* Enhanced the clickhouse__listagg macro to support single field ordering with optional direction, ensuring compatibility with ClickHouse's sorting limitations. Added validation to prevent the use of multiple order-by fields. ([#318](https://github.com/ClickHouse/dbt-clickhouse/pull/318))

#### Documentation
* Update the docs with the new `insert_overwrite` incremental strategy. ([#331](https://github.com/ClickHouse/dbt-clickhouse/pull/331))
* Add documentation for codec column configuration. ([#317](https://github.com/ClickHouse/dbt-clickhouse/pull/317))


### Release [1.8.1], 2024-07-11
#### Bug Fix
Expand Down