Skip to content

Commit cf410ea

Browse files
committed
Add temporary workaround for new STANDARD_GEN_1 default resource_constraint
1 parent 5543fd5 commit cf410ea

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
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.51.1] - 2025-05-20
4+
5+
- Added temporary workaround for potential new default `resource_constraint=STANDARD_GEN_1` for `STANDARD` warehouses. Previously it was `null`.
6+
37
## [0.51.0] - 2025-05-15
48

59
- Introduced `DATABASE_ROLE` object type. Currently, it can be used for outbound shares only.

snowddl/resolver/warehouse.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,11 @@ def _compare_properties(self, bp: WarehouseBlueprint, row: dict):
139139
query.append_nl("AUTO_SUSPEND = {auto_suspend:d}", {"auto_suspend": bp.auto_suspend})
140140

141141
if bp.resource_constraint != row["resource_constraint"]:
142-
query.append_nl("RESOURCE_CONSTRAINT = {resource_constraint}", {"resource_constraint": bp.resource_constraint})
142+
# Take new default value into account for STANDARD warehouse type
143+
if bp.resource_constraint is None and bp.type == "STANDARD" and row["resource_constraint"] == "STANDARD_GEN_1":
144+
pass
145+
else:
146+
query.append_nl("RESOURCE_CONSTRAINT = {resource_constraint}", {"resource_constraint": bp.resource_constraint})
143147

144148
if self.engine.context.edition >= Edition.ENTERPRISE:
145149
if bp.min_cluster_count != row["min_cluster_count"]:

snowddl/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.51.0"
1+
__version__ = "0.51.1"

0 commit comments

Comments
 (0)