Skip to content

Commit e0303f0

Browse files
committed
Add tests for cluster_by parameter for DYNAMIC_TABLE
1 parent c5a7a18 commit e0303f0

File tree

15 files changed

+74
-1
lines changed

15 files changed

+74
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## [0.54.2] - 2025-06-25
4+
5+
- Added check for `cluster_by` parameter for existing dynamic tables (thanks to gcv-epalmer).
6+
37
## [0.54.1] - 2025-06-24
48

59
- Added `unique` parameter for `SEMANTIC_VIEW` table. Semantic views should now be fully supported.

snowddl/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.54.1"
1+
__version__ = "0.54.2"
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
text: |-
2+
SELECT id, name
3+
FROM dt004_tb1
4+
5+
warehouse: dt004_wh1
6+
target_lag: 1 hour
7+
8+
cluster_by: [id]

test/_config/step1/db1/sc1/params.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ owner_warehouse_usage:
88
- dt001_wh2
99
- dt002_wh1
1010
- dt003_wh1
11+
- dt004_wh1
1112
- mp001_wh1
1213
- pp001_wh1
1314
- rp001_wh1
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
columns:
2+
id: NUMBER(10,0)
3+
name: VARCHAR(255)
4+
5+
change_tracking: true

test/_config/step1/warehouse.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ dt002_wh1:
1616
dt003_wh1:
1717
size: XSMALL
1818

19+
dt004_wh1:
20+
size: XSMALL
21+
1922
mp001_wh1:
2023
size: XSMALL
2124

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
text: |-
2+
SELECT id, name
3+
FROM dt004_tb1
4+
5+
warehouse: dt004_wh1
6+
target_lag: 1 hour
7+
8+
cluster_by: [id, name]

test/_config/step2/db1/sc1/params.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ owner_warehouse_usage:
77
- dt001_wh2
88
- dt002_wh1
99
- dt003_wh1
10+
- dt004_wh1
1011
- mp001_wh1
1112
- pp001_wh1
1213
- rp001_wh1
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
columns:
2+
id: NUMBER(10,0)
3+
name: VARCHAR(255)
4+
5+
change_tracking: true

test/_config/step2/warehouse.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ dt002_wh1:
1919
dt003_wh1:
2020
size: XSMALL
2121

22+
dt004_wh1:
23+
size: XSMALL
24+
2225
mp001_wh1:
2326
size: XSMALL
2427

0 commit comments

Comments
 (0)