-
Notifications
You must be signed in to change notification settings - Fork 294
Fix running empty models or ephemeral nodes in ExecutionMode.WATCHER
#2279
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
fbf942a
Fix running empty models or ephemeral nodes in ExecutionMode.WATCHER
tatiana 4219e96
Merge branch 'main' into fix-empty-model-issue
tatiana da457db
Address copilot feedback
tatiana 86b0880
Address copilot feedback
tatiana 28eedcb
Improve running unittests. This may also allow the solution to work w…
tatiana acd6acf
Help mocked unittests to pass
tatiana 0578b0f
Simplify the implementation
tatiana 7bbdb4b
Fix AF 2.8 test that was failing due to bug in AF 2.8.0
tatiana b24e24d
Apply suggestion from @tatiana
tatiana 7a5ca15
Try to fix tests that are getting stuck in the CI
tatiana ac2b284
Overcome CI issue so we can complete this ticket, document limitations
tatiana 24fdfaa
Improve test coverage
tatiana 5291651
Fix tests in Airflow 3.1
tatiana 23cc822
Merge branch 'main' into fix-empty-model-issue
tatiana 5a21a2e
Add unittest to meet coverage expectations
tatiana 31300ff
Merge branch 'main' into fix-empty-model-issue
tatiana File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,7 @@ | ||
| name: micro_dbt_project | ||
| version: '1.0' | ||
| config-version: 2 | ||
|
|
||
| profile: default | ||
|
|
||
| model-paths: ["models"] |
12 changes: 12 additions & 0 deletions
12
tests/sample/dbt_project_with_empty_model/models/add_row.sql
This file contains hidden or 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,12 @@ | ||
| with base as ( | ||
| select | ||
| 1 as id, | ||
| 'original_row' as description | ||
|
|
||
| ) | ||
|
|
||
| select * from base | ||
| union all | ||
| select | ||
| 2 as id, | ||
| 'added_row' as description |
Empty file.
This file contains hidden or 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,8 @@ | ||
| version: 2 | ||
|
|
||
| models: | ||
| - name: add_row | ||
| description: "Model that selects data and adds an extra row" | ||
|
|
||
| - name: empty_model | ||
| description: "Empty model definition" |
This file contains hidden or 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,12 @@ | ||
| default: | ||
| target: dev | ||
| outputs: | ||
| dev: | ||
| type: postgres | ||
| host: "{{ env_var('POSTGRES_HOST') }}" | ||
| user: "{{ env_var('POSTGRES_USER') }}" | ||
| password: "{{ env_var('POSTGRES_PASSWORD') }}" | ||
| port: "{{ env_var('POSTGRES_PORT') | int }}" | ||
| dbname: "{{ env_var('POSTGRES_DB') }}" | ||
| schema: "{{ env_var('POSTGRES_SCHEMA') }}" | ||
| threads: 4 |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.