-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into ct-2327-model_publication
- Loading branch information
Showing
12 changed files
with
162 additions
and
17 deletions.
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: Persist timing info in run results for failed nodes | ||
time: 2023-04-13T13:31:57.938847-05:00 | ||
custom: | ||
Author: stu-k | ||
Issue: "5476" |
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: Add --target-path to dbt snapshot command. | ||
time: 2023-04-20T10:42:54.17972-04:00 | ||
custom: | ||
Author: dwreeves | ||
Issue: "7418" |
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: Under the Hood | ||
body: Reduce memory footprint of cached statement results. | ||
time: 2023-04-17T12:27:21.972268-05:00 | ||
custom: | ||
Author: iknox-fa | ||
Issue: "7281" |
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 |
---|---|---|
|
@@ -11,6 +11,7 @@ __pycache__/ | |
env*/ | ||
dbt_env/ | ||
build/ | ||
!tests/functional/build | ||
!core/dbt/docs/build | ||
develop-eggs/ | ||
dist/ | ||
|
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
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
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,32 @@ | ||
import pytest | ||
from dbt.tests.util import run_dbt | ||
|
||
good_model_sql = """ | ||
select 1 as id | ||
""" | ||
|
||
bad_model_sql = """ | ||
something bad | ||
""" | ||
|
||
|
||
class TestRunResultsTimingSuccess: | ||
@pytest.fixture(scope="class") | ||
def models(self): | ||
return {"model.sql": good_model_sql} | ||
|
||
def test_timing_exists(self, project): | ||
results = run_dbt(["run"]) | ||
assert len(results.results) == 1 | ||
assert len(results.results[0].timing) > 0 | ||
|
||
|
||
class TestRunResultsTimingFailure: | ||
@pytest.fixture(scope="class") | ||
def models(self): | ||
return {"model.sql": bad_model_sql} | ||
|
||
def test_timing_exists(self, project): | ||
results = run_dbt(["run"], expect_pass=False) | ||
assert len(results.results) == 1 | ||
assert len(results.results[0].timing) > 0 |
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