-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update on_skip to adjust for node that do not have schema (#10302)
* update on_skip to adjust for node that do not have schema * changelog
- Loading branch information
1 parent
e699f5d
commit 8639290
Showing
3 changed files
with
21 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
kind: Fixes | ||
body: Saved Query node fail during skip | ||
time: 2024-06-12T12:42:56.329073-07:00 | ||
custom: | ||
Author: ChenyuLInx | ||
Issue: "10029" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
from dbt.contracts.graph.nodes import SavedQuery | ||
from dbt.task.build import SavedQueryRunner | ||
|
||
|
||
def test_saved_query_runner_on_skip(saved_query: SavedQuery): | ||
runner = SavedQueryRunner( | ||
config=None, | ||
adapter=None, | ||
node=saved_query, | ||
node_index=None, | ||
num_nodes=None, | ||
) | ||
# on_skip would work | ||
runner.on_skip() |