Skip to content

Commit 49fd7cc

Browse files
authored
Merge branch 'main' into add_fabric_warehouse
2 parents 0b837a1 + 7157652 commit 49fd7cc

File tree

2 files changed

+7
-12
lines changed

2 files changed

+7
-12
lines changed

.github/workflows/private-repo-test.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Private Repo Testing
22

33
on:
4-
pull_request:
4+
pull_request_target:
55
branches:
66
- main
77

@@ -20,6 +20,7 @@ jobs:
2020
uses: actions/checkout@v5
2121
with:
2222
fetch-depth: 0
23+
ref: ${{ github.event.pull_request.head.sha || github.ref }}
2324
- name: Set up Python
2425
uses: actions/setup-python@v5
2526
with:

sqlmesh/core/plan/builder.py

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -733,17 +733,11 @@ def _get_orphaned_indirect_change_category(
733733
# One of the new parents in the chain was breaking so this indirect snapshot is breaking
734734
return SnapshotChangeCategory.INDIRECT_BREAKING
735735

736-
if SnapshotChangeCategory.FORWARD_ONLY in previous_parent_categories:
737-
# One of the new parents in the chain was forward-only so this indirect snapshot is forward-only
738-
indirect_category = SnapshotChangeCategory.FORWARD_ONLY
739-
elif (
740-
previous_parent_categories.intersection(
741-
{
742-
SnapshotChangeCategory.NON_BREAKING,
743-
SnapshotChangeCategory.INDIRECT_NON_BREAKING,
744-
}
745-
)
746-
and indirect_category != SnapshotChangeCategory.FORWARD_ONLY
736+
if previous_parent_categories.intersection(
737+
{
738+
SnapshotChangeCategory.NON_BREAKING,
739+
SnapshotChangeCategory.INDIRECT_NON_BREAKING,
740+
}
747741
):
748742
# All changes in the chain were non-breaking so this indirect snapshot can be non-breaking too
749743
indirect_category = SnapshotChangeCategory.INDIRECT_NON_BREAKING

0 commit comments

Comments
 (0)