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

Fork update #10

Merged
merged 93 commits into from
May 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
93 commits
Select commit Hold shift + click to select a range
cee33c0
fix: SYSTEM SYNC REPLICA for on_cluster_clause (#156)
Schum-io May 25, 2023
7d3eb2e
Update version and pypi job
genzgd May 25, 2023
a5ce195
Fix incompatible return type (#162)
PrVrSs Jun 12, 2023
95a4b21
Distributed table materialization (#163)
gladkikhtutu Jun 26, 2023
005cd8f
Bump version
genzgd Jun 27, 2023
b1def6e
Tweak PyPI build Python release
genzgd Jun 27, 2023
67cf9db
Add space to exchange_tables_atomic macro (#168)
damirbk Jul 17, 2023
c3cad11
Fix bad logging/error handling (#170)
genzgd Jul 19, 2023
8a2731f
Distributed incremental materialization (#172)
gladkikhtutu Jul 27, 2023
3a28a66
Update version and tweak docs
genzgd Jul 27, 2023
1a0649e
Lw delete set fix (#174)
genzgd Jul 27, 2023
4b8a202
Fix legacy incremental materialization (#178)
genzgd Aug 9, 2023
9c8139f
fix: distributed_table materialization issue (#184)
zli06160 Aug 22, 2023
80cba25
Bump version and changelog (#185)
genzgd Aug 22, 2023
b79669a
cluster names containing dash characters (#198) (#200)
the4thamigo-uk Oct 21, 2023
d63285a
Add basic error test, fix minor merge conflict (#202)
genzgd Oct 26, 2023
96474f1
Cluster setting and Distributed Table tests (#186)
gfunc Oct 26, 2023
af72593
Update version and CHANGELOG, incorporate cluster name fix (#203)
genzgd Oct 26, 2023
9edb554
Release 1 5 0 (#210)
genzgd Nov 23, 2023
5e8e54b
Update test and dependency versions. (#211)
genzgd Nov 23, 2023
588e5ca
Adjust the wrapper parenthesis around the table materialization sql c…
kris947 Nov 27, 2023
1f17ec2
Update for 1.5.1 bug fix
genzgd Nov 27, 2023
9997b82
Fix creation of replicated tables when using legacy materialization (…
StevenReitsma Nov 28, 2023
3fec9a4
On cluster sync cleanup
genzgd Nov 28, 2023
bf11cbe
Bug fixes related to model settings. (#214)
genzgd Nov 29, 2023
8561210
Add materialization macro for materialized view (#207)
SoryRawyer Nov 29, 2023
246a4d8
Release 1 6 0 (#215)
genzgd Nov 30, 2023
08bbbf9
Release 1 6 1 (#217)
genzgd Dec 5, 2023
e6e74e4
Release 1 6 2 (#219)
genzgd Dec 6, 2023
2e72a00
Release 1 7 0 (#220)
genzgd Dec 7, 2023
5ccdad5
Correctly warn or error if light weight deletes not available
genzgd Dec 8, 2023
2d5c675
Wrap columns_in_query query in select statement (#222)
ptemarvelde Dec 13, 2023
ca9da0b
Update changelog
genzgd Dec 13, 2023
8551bb1
allows to add a comment in table's or view's metadata
dstsimokha Dec 23, 2023
2b81b76
add settings_section flag as comment for code using settings
BentsiLeviav Jan 28, 2024
2b0ba19
override test sql macro and add limit-placer macro
BentsiLeviav Jan 28, 2024
047308e
update CHANGELOG.md
BentsiLeviav Jan 28, 2024
092c618
fix: use correct schema for MV target tables (#244)
SoryRawyer Feb 2, 2024
febc220
Update changelog
genzgd Feb 2, 2024
36303c3
rename end of query flag
BentsiLeviav Feb 4, 2024
4cc1265
Merge branch 'main' into bug/223-relationship-test-with-limit
BentsiLeviav Feb 4, 2024
d8afb93
Bug/223 relationship test with limit (#245)
BentsiLeviav Feb 4, 2024
b791bcc
Revert "Bug/223 relationship test with limit (#245)" (#247)
genzgd Feb 4, 2024
a63cbd7
always return --end_of_sql when asking for settings
BentsiLeviav Feb 13, 2024
2917904
Add model settings based on materialization type
BentsiLeviav Feb 13, 2024
5bfce51
support setting clause on view creation
BentsiLeviav Feb 13, 2024
2dc4e49
edit CHANGELOG.md
BentsiLeviav Feb 13, 2024
ca730d8
Merge pull request #249 from ClickHouse/bug/223-relationship-test-wit…
BentsiLeviav Feb 13, 2024
5b5aa05
Bump version and tweak changelog
genzgd Feb 13, 2024
6f4c7d6
Merge branch 'main' into bug/231-settings-with-create-view
BentsiLeviav Feb 15, 2024
a4dcd9e
change list syntax to satisfy lint test
BentsiLeviav Feb 15, 2024
ce3d9f7
Merge remote-tracking branch 'origin/bug/231-settings-with-create-vie…
BentsiLeviav Feb 15, 2024
b353cf6
change list syntax to satisfy lint test
BentsiLeviav Feb 15, 2024
eee0e52
change imports order to satisfy lint test
BentsiLeviav Feb 15, 2024
86c69ca
Add typing to satisfy lint
BentsiLeviav Feb 15, 2024
e04e251
Merge pull request #250 from ClickHouse/bug/231-settings-with-create-…
BentsiLeviav Feb 15, 2024
57eb850
Add snapshot materialization to default settings
BentsiLeviav Feb 18, 2024
2df9462
Fix tests - add distributed_table and distributed_incremental materia…
BentsiLeviav Mar 3, 2024
79218f3
Fix tests - make sure to call the get_model_settings only when materi…
BentsiLeviav Mar 3, 2024
744e954
Merge pull request #251 from ClickHouse/bug/231-settings-with-create-…
BentsiLeviav Mar 3, 2024
d811e90
clean up recent changelog
genzgd Mar 3, 2024
24af7d9
Add materialization macro for dictionaries
SoryRawyer Mar 8, 2024
9e88d9f
address lint issue in dictionary test
SoryRawyer Mar 8, 2024
b722679
address lint issue with enum
SoryRawyer Mar 8, 2024
23b01e8
Fix model settings with custom materialization
silentsokolov Mar 16, 2024
940ecde
Merge pull request #255 from SoryRawyer/rds/add-dictionary-materializ…
BentsiLeviav Mar 21, 2024
5675b1d
Release 1.7.4 housekeeping (#261)
genzgd Mar 23, 2024
62efd62
Bump black from 23.11.0 to 24.3.0 (#259)
dependabot[bot] Mar 23, 2024
0c44464
Merge pull request #257 from ClickHouse/fix-settings-custom-mat
BentsiLeviav Mar 26, 2024
ef350a4
Release 1 7 5 (#265)
genzgd Apr 2, 2024
08cee87
fix(clients): add newlines around subquery when retrieving columns to…
tevariou Apr 8, 2024
84c79a2
Fix lint
genzgd Apr 8, 2024
0e4ef70
lazy load agate (#263)
dwreeves Apr 8, 2024
1c9a15d
feat: add TTL support (#254)
Ian2012 Apr 8, 2024
6a6531a
Fix lint
genzgd Apr 8, 2024
d94f93b
Update table relation after exchange command (#230)
Somtom Apr 12, 2024
4d7f4af
feat: allow to add connection overrides for dictionaries (#267)
Ian2012 Apr 12, 2024
63b94fc
Housekeeping for 1.7.6 release (#268)
genzgd Apr 13, 2024
a75a1bb
Merge branch 'main' into main
BentsiLeviav Apr 15, 2024
5f023e0
Merge pull request #228 from dstsimokha/main
BentsiLeviav Apr 15, 2024
3a0ba36
Revert "allows to add a comment in table's or view's metadata"
BentsiLeviav Apr 15, 2024
e1379ad
Merge pull request #269 from ClickHouse/revert-228-main
BentsiLeviav Apr 15, 2024
52db858
Fix bool_or behavior (#270)
scrawfor Apr 16, 2024
c781b09
feat: support column codecs
rjoelnorgren Apr 26, 2024
7f7c8df
Use Column.data_type in ClickHouseAdapter.format_columns
rjoelnorgren Apr 27, 2024
6addd50
Always apply query_settings in clickhouse__insert_into macro
rjoelnorgren Apr 30, 2024
334a6b5
Merge pull request #275 from rjoelnorgren/column-codecs
BentsiLeviav May 13, 2024
accfc71
Merge pull request #278 from rjoelnorgren/fix-contract-query-settings
BentsiLeviav May 13, 2024
c996503
Add ClickHouseColumn.is_low_cardinality
rjoelnorgren May 18, 2024
888b531
Update column type test cases for LowCardinality
rjoelnorgren May 18, 2024
9e82f58
Omit empty dictionary connection_overrides from materialization DDL
rjoelnorgren May 18, 2024
5a6e2a7
Merge pull request #276 from rjoelnorgren/fix-nested-type-constraints
BentsiLeviav May 20, 2024
2550233
Merge pull request #284 from rjoelnorgren/fix-empty-dictionary-connec…
BentsiLeviav May 20, 2024
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
8 changes: 4 additions & 4 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Python 3.9
uses: actions/setup-python@v4
- name: Setup Python 3.11
uses: actions/setup-python@v5
with:
python-version: 3.9
python-version: 3.11

- name: Upgrade Setuptools
run: pip install --upgrade setuptools wheel
Expand Down
11 changes: 7 additions & 4 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
---
name: "PyPI Release"

on: # yamllint disable-line rule:truthy
# yamllint disable-line rule:truthy
on:
push:
tags:
- 'v*'
workflow_dispatch:


jobs:
publish:
Expand All @@ -13,12 +16,12 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: 3.9
python-version: "3.11"

- name: Upgrade Setuptools
run: pip install --upgrade setuptools wheel
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/test_cloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on: # yamllint disable-line rule:truthy
push:
branches:
- '*_cloud'
workflow_dispatch:

jobs:
cloud_tests:
Expand All @@ -16,15 +17,16 @@ jobs:
DBT_CH_TEST_HOST: ${{ secrets.INTEGRATIONS_TEAM_TESTS_CLOUD_HOST }}
DBT_CH_TEST_PASSWORD: ${{ secrets.INTEGRATIONS_TEAM_TESTS_CLOUD_PASSWORD }}
DBT_CH_TEST_CLUSTER_MODE: true
DBT_CH_TEST_CLOUD: true

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Python 3.10
uses: actions/setup-python@v4
- name: Setup Python 3.11
uses: actions/setup-python@v5
with:
python-version: '3.10'
python-version: '3.11'

- name: Install requirements
run: pip3 install -r dev_requirements.txt
Expand Down
31 changes: 14 additions & 17 deletions .github/workflows/test_matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,54 +23,51 @@ jobs:
strategy:
matrix:
python-version:
- '3.8'
- '3.9'
- '3.10'
- '3.11'
- '3.12'
clickhouse-version:
- '22.8'
- '23.2'
- '23.3'
- '23.4'
- '23.8'
- '24.1'
- '24.2'
- '24.3'
- latest

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set environment variables
if: ${{ matrix.clickhouse-version == '22.3' }}
run: |
echo "TEST_SETTINGS_FILE=22_3" >> $GITHUB_ENV
echo "DBT_CH_TEST_CH_VERSION=22.3" >> $GITHUB_ENV

- name: Run ClickHouse Container
run: docker run
-d
-p 8123:8123
-p 9000:9000
--name clickhouse
-v /var/lib/clickhouse
-v ${{ github.workspace }}/tests/integration/test_settings_$TEST_SETTINGS_FILE.xml:/etc/clickhouse-server/users.d/test_settings.xml
--ulimit nofile=262144:262144
clickhouse/clickhouse-server:${{ matrix.clickhouse-version }}
- name: Run ClickHouse Cluster Containers
env:
PROJECT_ROOT: ${{ github.workspace }}/tests/integration
run: REPLICA_NUM=1 docker-compose -f ${{ github.workspace }}/tests/integration/docker-compose.yml up -d

- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install requirements
run: pip3 install -r dev_requirements.txt

- name: Run HTTP tests
env:
DBT_CH_TEST_CLUSTER: test_shard
run: |
PYTHONPATH="${PYTHONPATH}:dbt"
pytest tests

- name: Run Native tests
env:
DBT_CH_TEST_PORT: 9000
DBT_CH_TEST_CLUSTER: test_shard
run: |
PYTHONPATH="${PYTHONPATH}:dbt"
pytest tests
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -96,3 +96,4 @@ dbt-tut
# local development stuff
dev/
.python-version
*_project/
181 changes: 181 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,184 @@
### Release [1.7.6], 2024-04-12
#### Bug Fix
- A bug in (experimental) Distributed Table model creation could lead to errors when there was a change in the model definition (see, e.g.,
https://github.com/ClickHouse/dbt-clickhouse/issues/226). Thanks to [Thomas Schmidt](https://github.com/Somtom) for the Fix!
- A comment at the end of a model would break the query used to retrieve the result column datatypes. Thanks to [triou](https://github.com/tevariou)
for the bug report and the fix. Closes https://github.com/ClickHouse/dbt-clickhouse/issues/256

#### Improvements
- The new materialization for ClickHouse dictionaries now takes an optional "credentials dictionary" argument that overrides the
global credentials values for user, password, database, host, and port (including removing any of those values by adding empty values if not needed).
This allows better control over creating dictionaries on different server. Thanks to [Cristhian Garcia](https://github.com/Ian2012)
for the PR!
- A new `ttl` setting has been added to model configuration that will insert the provided ClickHouse TTL expression in the appropriate place.
Thanks to [Evan Rusackas](https://github.com/rusackas) for the contribution!
- The Agate library should now be lazy loaded. This should modestly improve dbt startup times (after dbt-clickhouse is upgraded to dbt 1.8.x).
Thanks to [Daniel Reeves](https://github.com/dwreeves) for PR.

### Release [1.7.5], 2024-04-02
#### Bug Fixes
- Requirements and tests upgraded to include Python 3.12. Closes https://github.com/ClickHouse/dbt-clickhouse/issues/264
- Model settings were not working correctly for custom materializations. Thanks to original dbt-clickhouse [silentsokolov](https://github.com/silentsokolov)
for the PR!

### Release [1.7.4], 2024-03-23
#### Improvement
- Adds support for materializing ClickHouse dictionaries. Thanks to [Rory Sawyer](https://github.com/SoryRawyer) for the contribution!
See his excellent [tests](https://github.com/ClickHouse/dbt-clickhouse/blob/main/tests/integration/adapter/dictionary/test_dictionary.py)
for example usage.

### Release [1.7.3], 2024-03-11
#### Bug Fixes
- Fixed an [issue](https://github.com/ClickHouse/dbt-clickhouse/issues/231) where passing settings to on view creation didn't work.
- The `dbt test` command with a LIMIT clause were broken due to parsing error when having settings in the query ([issue](https://github.com/ClickHouse/dbt-clickhouse/issues/223)).
We added a dedicated limit placer, that takes into account the settings section (using a comment flag `-- end_of_sql` within the query).

### Release [1.7.2], 2024-02-09
#### Bug Fix
- Fixed an issue where Materialize Views would break with a custom schema. Thanks to [Rory Sawyer](https://github.com/SoryRawyer)
for the PR!

### Release [1.7.1], 2023-12-13
#### Bug Fixes
- Some models with LIMIT clauses were broken in recent releases. This has been fixed. Thanks to
[ptemarvelde](https://github.com/ptemarvelde) for the PR!
- It was possible for incremental models with the delete+insert strategy to fail if ClickHouse "light weight deletes" were
not enabled or the required setting `allow_nondetermistic_mutations` was not enabled and the user did not have permission
to apply it. This condition is now detected on startup, and an exception will be thrown if `use_lw_deletes` is configured
in the profile. Otherwise, a warning will be logged that incremental models will be slower (because such models will
be downgraded to use the `legacy` incremental strategy). This should prevent the confusing behavior in
https://github.com/ClickHouse/dbt-clickhouse/issues/197 by throwing an early exception for an unsupported configuration.

### Release [1.7.0], 2023-12-07
#### Improvements
- Minimal compatibility with dbt 1.7.x. The date_spine macro and additional automated tests have not been implemented,
but are planned for a future patch release.
- DBT 1.7 introduces a (complex) optimization mechanism for retrieving a dbt catalog which is overkill for ClickHouse
(which has no separate schema/database level), so this release includes some internal catalog changes to simplify that process.

### Release [1.6.2], 2023-12-06
#### Bug Fix
- The dbt `on_schema_change` configuration value for incremental models was effectively being ignored. This has been fixed
with a very limited implementation. Closes https://github.com/ClickHouse/dbt-clickhouse/issues/199. Because of the way that
ORDER BY/SORT BY/PARTITION BY/PRIMARY KEYS work in ClickHouse, plus the complexities of correctly transforming ClickHouse data types,
`sync_all_columns` is not currently supported (although an implementation that works for non-key columns is theoretically possible,
such an enhancement is not currently planned). Accordingly, only `ignore`, `fail`, and `append_new_columns` values are supported
for `on_schema_change`. It is also not currently supported for Distributed tables.

Note that actually appending new columns requires a fallback to the `legacy` incremental strategy, which is quite inefficient,
so while theoretically possible, using `append_new_columns` is not recommended except for very small data volumes.

### Release [1.6.1], 2023-12-04
#### Bug Fixes
- Identifier quoting was disabled for tables/databases etc. This would cause failures for schemas or tables using reserved words
or containing special characters. This has been fixed and some macros have been updated to correctly handle such identifiers.
Note that there still may be untested edge cases where nonstandard identifiers cause issues, so they are still not recommended.
Closes https://github.com/ClickHouse/dbt-clickhouse/issues/144. Thanks to [Alexandru Pisarenco](https://github.com/apisarenco) for the
report and initial PR!
- The new `allow_automatic_deduplication` setting was not being correctly propagated to the adapter, so setting it to `True`
did not have the intended affect. In addition, this setting is now ignored for older ClickHouse versions that
do not support `CREATE TABLE AS SELECT ... EMPTY`, since the automatic deduplication window is required to allow correct
inserts in Replicated tables on those older versions. Fixes https://github.com/ClickHouse/dbt-clickhouse/issues/216.

### Release [1.6.0], 2023-11-30
#### Improvements
- Compatible with dbt 1.6.x. Note that dbt new `clone` feature is not supported, as ClickHouse has no native "light weight"
clone functionality, and copying tables without actual data transfer is not possible in ClickHouse (barring file manipulation
outside ClickHouse itself).
- A new ClickHouse specific Materialized View materialization contributed by [Rory Sawyer](https://github.com/SoryRawyer).
This creates a ClickHouse Materialized view using the `TO` form with the name `<model_name>_mv` and the associated target
table `<model_name>`. It's highly recommended to fully understand how ClickHouse materialized views work before using
this materialization.

### Release [1.5.2], 2023-11-28
#### Bug Fixes
- The `ON CLUSTER` clause was in the incorrect place for legacy incremental materializations. This has been fixed. Thanks to
[Steven Reitsma](https://github.com/StevenReitsma) for the fix!
- The `ON CLUSTER` DDL for drop tables did not include a SYNC modifier, which might be the cause of some "table already exists"
errors. The `SYNC` modifier has been added to the `on_cluster` macro when dropping relations.
- Fixed a bug where using table settings such as `allow_nullable_key` would break "legacy" incremental materializations. Closes
https://github.com/ClickHouse/dbt-clickhouse/issues/209. Also see the new model `config` property `insert_settings` described
below.
- Fixed an issue where incremental materializations would incorrectly exclude duplicated inserted elements due to "automatic"
ClickHouse deduplication on replicated tables. Closes https://github.com/ClickHouse/dbt-clickhouse/issues/213. The fix consists
of always sending a `replicated_deduplication_window=0` table setting when creating the incremental relations. This
behavior can be overridden by setting the new profile parameter `allow_automatic_deduplication` to `True`, although for
general dbt operations this is probably not necessary and not recommended. Finally thanks to Andy(https://github.com/andy-miracl)
for the report and debugging help!

#### Improvements
- Added a new profile property `allow_automatic_deduplication`, which defaults to `False`. ClickHouse Replicated deduplication is
now disable for incremental inserts, but this property can be set to true if for some reason the default ClickHouse behavior
for inserted blocks is desired.
- Added a new model `config` property `query_settings` for any ClickHouse settings that should be sent with the `INSERT INTO`
or `DELETE_FROM` queries used with materializations. Note this is distinct from the existing property `settings` which is
used for ClickHouse "table" settings in DDL statements like `CREATE TABLE ... AS`.

### Release [1.5.1], 2023-11-27
#### Bug Fix
- Fix table materialization for compatibility with SQLFluff. Thanks to [Kristof Szaloki](https://github.com/kris947) for the PR!

### Release [1.5.0], 2023-11-23
#### Improvements
- Compatible with dbt 1.5.x
- Contract support (using exact column data types)

#### Bug Fix
- Fix s3 macro when bucket includes `https://` prefix. Closes https://github.com/ClickHouse/dbt-clickhouse/issues/192.

### Release [1.4.9], 2023-10-27
#### Improvement
- Lots of work on Distributed table materializations. Big thanks to [gfunc](https://github.com/gfunc) for the additional PR
and [Zhenbang](https://github.com/zli06160) for code review and suggestions. See the README for details on how to
use the new functionality.
#### Bug Fix
- dbt would fail if a cluster name contained a dash. This has been fixed. Thanks to [Andy](https://github.com/the4thamigo-uk
for the PR

### Release [1.4.8], 2023-08-22
#### Bug Fix
- Fixed issues with experimental Distributed table materializations. Closes https://github.com/ClickHouse/dbt-clickhouse/issues/179.
Thanks to [Zhebnang](https://github.com/zli06160) for the report and for contributing to the fix with [gfunc](https://github.com/gfunc).

### Release [1.4.7], 2023-08-09
#### Bug Fix
- Fixed an exception in "legacy" incremental materializations that are not distributed

### Release [1.4.6], 2023-07-27
#### Bug fix
- Lightweight deletes could fail in environments where the HTTP session was not preserved (such as clusters behind a non-sticky
load balancer). This has been fixed by sending the required settings with every request instead of relying on a SET statement.
A similar approach has been used to persist the 'insert_distributed_sync' setting for Distributed table materializations.

### Release [1.4.5], 2023-07-27
#### Improvement
- Adds additional experimental support for Distributed table engine models and incremental materialization. See the README for
details. Thanks to [gladkikhtutu](https://github.com/gladkikhtutu) for the contribution!

### Release [1.4.4], 2023-07-19
#### Bug Fixes
- Fixed two logging/exception handling issues that would cause exception on startup or when handling some exceptions
from the ClickHouse server. Partially addresses https://github.com/ClickHouse/dbt-clickhouse/issues/169.
- Fixed issue with the `on_cluster` macro that would break the exchange tables step of incremental materializations
with an active cluster. Thanks to [Andrew Davis](https://github.com/Savid) for the PR. Closes
https://github.com/ClickHouse/dbt-clickhouse/issues/167

### Release [1.4.3], 2023-06-27
#### Bug Fix
- Use correct return value for `execute`. This would cause an exception when running hooks. Thanks to
[Sergey Reshetnikov](https://github.com/PrVrSs) for the PR. Closed https://github.com/ClickHouse/dbt-clickhouse/issues/161

#### Improvement
- Added macros for creating distributed tables. See the `distributed_table.sql` include file. Thanks to
[gladkikhtutu](https://github.com/gladkikhtutu) for the contribution.

### Release [1.4.2], 2023-05-14
#### Bug fixes
- Create initial dbt database (if not found) on the defined cluster on first run, instead of just the execution node.
Thanks to [Jens Hoevenaars](https://github.com/codenation-nl) for the PR
- Fix the SYSTEM SYNC REPLICA statement when exchanging tables ON CLUSTER for incremental materializations. Thanks to
[Schum](https://github.com/Schum-io) for PR. Closed https://github.com/ClickHouse/dbt-clickhouse/issues/157.

### Release [1.4.1], 2023-05-11
#### Improvements
- Reduce the number of SQL calls for Modify Comment operations. Thanks to [Konstantin Ilchenko](https://github.com/simpl1g).
Expand Down
8 changes: 2 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Check style and linting
.PHONY: check-black check-isort check-flake8 check-mypy lint
.PHONY: check-black check-isort check-mypy lint

check-black:
@echo "--> Running black checks"
Expand All @@ -9,10 +9,6 @@ check-isort:
@echo "--> Running isort checks"
@isort --check-only .

check-flake8:
@echo "--> Running flake8 checks"
@flake8 .

check-mypy:
@echo "--> Running mypy checks"
@mypy --exclude dbt/adapters/clickhouse/__init__.py --exclude conftest.py .
Expand All @@ -21,7 +17,7 @@ check-yamllint:
@echo "--> Running yamllint checks"
@yamllint dbt tests .github

lint: check-black check-isort check-flake8 check-mypy check-yamllint
lint: check-black check-isort check-mypy check-yamllint

# Format code
.PHONY: fmt
Expand Down
Loading