Skip to content

Commit

Permalink
Add ICEBERG_TABLE object type
Browse files Browse the repository at this point in the history
  • Loading branch information
littleK0i committed Oct 18, 2024
1 parent 1ba361e commit 90a126d
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## [0.34.3] - 2024-10-18

- Added `ICEBERG_TABLE` object type to make it available for grants and permission models.

## [0.34.2] - 2024-10-18

- Added parameters `owner_database_read`, `owner_database_write` to `DATABASE` config. It only works if both current database and target database has permission model with `database_owner` ruleset.
Expand Down
9 changes: 9 additions & 0 deletions snowddl/blueprint/object_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,15 @@ class ObjectType(Enum):
"blueprint_cls": "HybridTableBlueprint",
}

# Technical object type, used for GRANTs only
# Currently there is no blueprint
ICEBERG_TABLE = {
"singular": "ICEBERG TABLE",
"plural": "ICEBERG TABLES",
"singular_for_ref": "TABLE",
"is_future_grant_supported": True,
}

# Technical object type, used for GRANTs only
# There is no blueprint
INTEGRATION = {
Expand Down
2 changes: 0 additions & 2 deletions snowddl/parser/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,6 @@ def load_blueprints(self):
comment=database_params.get("comment", None),
)

print(bp.full_name)

self.config.add_blueprint(bp)

def build_database_role_grant(self, database_name, role_type):
Expand Down
2 changes: 1 addition & 1 deletion snowddl/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.34.2"
__version__ = "0.34.3"

0 comments on commit 90a126d

Please sign in to comment.