-
Notifications
You must be signed in to change notification settings - Fork 8
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
Duplicate Datasources #410
Conversation
@@ -26,7 +26,7 @@ func TestTransformIdWithRegion(t *testing.T) { | |||
"expected": "aws/us-east-1:u1", | |||
}, | |||
} | |||
for tc, _ := range testCases { | |||
for tc := range testCases { |
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.
Unrelated, just from running format
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.
Seems like that the IDs migration CI is failing, but it should no longer be needed as the version has now been released.
@@ -2,6 +2,12 @@ | |||
|
|||
## Unreleased | |||
|
|||
### Features | |||
* Allow Avro comments (`avro_doc_type` and `avro_doc_column`) for resource `materialize_sink_kafka` [#373](https://github.com/MaterializeInc/terraform-provider-materialize/pull/373) |
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.
Was not included in the last PR
@@ -114,6 +114,7 @@ var materializedViewQuery = NewBaseQuery(` | |||
SELECT id, comment | |||
FROM mz_internal.mz_comments | |||
WHERE object_type = 'materialized-view' | |||
AND object_sub_id IS NULL |
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.
This is the actual fix for the duplication issue. The majority of the PR is just testing
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.
This is great! Thank you for adding all of those tests!
Fixes #408
Investigation for duplicate datasources. It seems that the issue was with
materialize_materialized_views
that contained a top level comment as well as column level comments. This cannot be set via the provider (mostly likely dbt) which was leading to duplicated rows in the data sources. IncludingAND object_sub_id IS NULL
to the subquery removes the column level comments.Also including acceptance tests for all data sources: