Skip to content

Commit 9edb554

Browse files
authored
Release 1 5 0 (#210)
* Initial 1.5.0 commit * Reorganize basic tests * Fix lint * Add case sensitive cache * Fix s3 bucket bug * Checkpoint for constraints/contracts * Fix native column query * Loosen replication test * Checkpoint for constraints tests * Checkpoint for constraints tests * Add rendering of model level CHECK constraints * Fix lint * Reorganize test files * Add one hooks test * Fix lint
1 parent af72593 commit 9edb554

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+1513
-252
lines changed

Diff for: .github/workflows/test_matrix.yml

+2-4
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,13 @@ jobs:
2323
strategy:
2424
matrix:
2525
python-version:
26-
- '3.8'
2726
- '3.9'
2827
- '3.10'
2928
- '3.11'
3029
clickhouse-version:
31-
- '22.8'
3230
- '23.3'
33-
- '23.5'
34-
- '23.6'
31+
- '23.3'
32+
- '23.8'
3533
- latest
3634

3735
steps:

Diff for: .gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -96,3 +96,4 @@ dbt-tut
9696
# local development stuff
9797
dev/
9898
.python-version
99+
*_project/

Diff for: CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
### Release [1.5.0], TBD
2+
#### Improvements
3+
- Compatible with dbt 1.5.x
4+
- Contract support (using exact column data types)
5+
6+
#### Bug Fix
7+
- Fix s3 macro when bucket includes `https://` prefix. Closes https://github.com/ClickHouse/dbt-clickhouse/issues/192.
8+
19
### Release [1.4.9], 2023-10-27
210
#### Improvement
311
- Lots of work on Distributed table materializations. Big thanks to [gfunc](https://github.com/gfunc) for the additional PR

Diff for: README.md

+7
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ pip install dbt-clickhouse
3131
- [x] Ephemeral materialization
3232
- [x] Distributed table materialization (experimental)
3333
- [x] Distributed incremental materialization (experimental)
34+
- [x] Contracts
3435

3536
# Usage Notes
3637

@@ -185,6 +186,12 @@ keys used to populate the parameters of the S3 table function:
185186

186187
See the [S3 test file](https://github.com/ClickHouse/dbt-clickhouse/blob/main/tests/integration/adapter/test_s3.py) for examples of how to use this macro.
187188

189+
# Contracts and Constraints
190+
191+
Only exact column type contracts are supported. For example, a contract with a UInt32 column type will fail if the model returns a UInt64 or other integer type.
192+
ClickHouse also support _only_ `CHECK` constraints on the entire table/model. Primary key, foreign key, unique, and column level CHECK constraints are not supported.
193+
(See ClickHouse documentation on primary/order by keys.)
194+
188195
# Distributed materializations
189196

190197
Notes:

Diff for: dbt/adapters/clickhouse/__version__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
version = '1.4.9'
1+
version = '1.5.0'

0 commit comments

Comments
 (0)