Skip to content

Commit 033c88a

Browse files
committed
Exclude non-standard databases from schema_cache
1 parent 313ee9f commit 033c88a

File tree

4 files changed

+9
-5
lines changed

4 files changed

+9
-5
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.58.2] - 2025-10-16
4+
5+
- Excluded all non-standard `DATABASE` objects while processing `SHOW DATABASES` for "schema cache". It includes personal databases, inbound shares and application databases.
6+
37
## [0.58.1] - 2025-10-06
48

59
- Removed `:` from workload identity `SUBJECT` when env prefix is empty.

snowddl/cache/schema_cache.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ def reload(self):
3131
if r["owner"] != self.engine.context.current_role and not self.engine.settings.ignore_ownership:
3232
continue
3333

34-
# Skip shares
35-
if r["origin"]:
34+
# Skip non-standard databases
35+
if r["kind"] != "STANDARD":
3636
continue
3737

3838
# Skip databases not listed in settings explicitly

snowddl/resolver/clone_table.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ def get_databases_for_clone(self):
3131
cur = self.engine.execute_meta("SHOW DATABASES")
3232

3333
for r in cur:
34-
# Skip shares
35-
if r["origin"]:
34+
# Skip non-standard databases
35+
if r["kind"] != "STANDARD":
3636
continue
3737

3838
src_database = str(r["name"])

snowddl/version.py

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

0 commit comments

Comments
 (0)