-
Notifications
You must be signed in to change notification settings - Fork 59
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
Fix parsing of database results for materialized view autorefresh #643
Merged
Merged
Changes from all commits
Commits
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 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: Fix parsing of database results for materialized view auto refresh | ||
time: 2023-10-25T20:37:32.191259-04:00 | ||
custom: | ||
Author: mikealfare | ||
Issue: "643" |
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 |
---|---|---|
|
@@ -163,19 +163,6 @@ def test_change_is_applied_via_alter_str_true(self, project, my_materialized_vie | |
assert_message_in_logs(f"Applying ALTER to: {my_materialized_view}", logs) | ||
assert_message_in_logs(f"Applying REPLACE to: {my_materialized_view}", logs, False) | ||
|
||
def test_change_is_applied_via_alter_str_false(self, project, my_materialized_view): | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The string version of this is already tested with the test above. Also, this does not represent a change, and just the fact that |
||
self.check_start_state(project, my_materialized_view) | ||
|
||
self.change_config_via_alter_str_false(project, my_materialized_view) | ||
_, logs = run_dbt_and_capture_with_retries_redshift_mv( | ||
["--debug", "run", "--models", my_materialized_view.name] | ||
) | ||
|
||
self.check_state_alter_change_is_applied_str_false(project, my_materialized_view) | ||
|
||
assert_message_in_logs(f"Applying ALTER to: {my_materialized_view}", logs) | ||
assert_message_in_logs(f"Applying REPLACE to: {my_materialized_view}", logs, False) | ||
|
||
def test_change_is_applied_via_replace(self, project, my_materialized_view): | ||
self.check_start_state(project, my_materialized_view) | ||
|
||
|
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Redshift returns the value as a single character:
't'
or'f'
. Sometimesagate
picks this up and converts and sometimes it does not.