Skip to content

Conversation

@erezrokah
Copy link
Member

@erezrokah erezrokah commented Jun 23, 2023

Closes #11758

Summary

Similar to #11696.
I had to comment change some of the tests due to cloudquery/plugin-sdk#982 and cloudquery/plugin-sdk#915 (comment), so not ready to merge

BEGIN_COMMIT_OVERRIDE
feat!: Upgrades the postgresql source plugin to use plugin-sdk v4. This version does not contain any user-facing breaking changes, but because it is now using CloudQuery gRPC protocol v3, it does require use of a destination plugin that also supports protocol v3. All recent destination plugin versions support this.

feat!: To enable CDC in this version you'll need to use the cdc_id configuration string property, instead of the cdc boolean one. Please refer to the docs for more information
END_COMMIT_OVERRIDE

@erezrokah erezrokah requested review from a team and disq and removed request for a team June 23, 2023 08:52
pgType pgType
Tables schema.Tables
tables schema.Tables
cdcId string
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since plugins don't have access to the top level spec we can't use the source name as the replication name like before. I added a plugin level configuration for now, but we should figure this out before merging this PR as this is a breaking change

Unit: arrow.Millisecond,
}
err = timeMillisecond.Set("04:05:06.789")
err = inet.Set("192.168.0.0/24")
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can change this back to 192.168.0.1/24 after cloudquery/plugin-sdk#982 is released

@erezrokah
Copy link
Member Author

Marked this as blocked due to the breaking changes in the spec (adding a CDCId)

@erezrokah erezrokah force-pushed the fix/update_postgres_source_sdk_v4 branch 3 times, most recently from b4b53b3 to b38df93 Compare June 26, 2023 13:45
@erezrokah erezrokah changed the title feat(postgres): Update to SDK V4 feat(postgres)!: Update to SDK V4 Jun 26, 2023
@erezrokah
Copy link
Member Author

Marked this as blocked due to the breaking changes in the spec (adding a CDCId)

Related to #11766. We'll need to chose the right naming for this plugin level configuration and document it

@hermanschaaf hermanschaaf changed the title feat(postgres)!: Update to SDK V4 feat(postgresql)!: Update to SDK V4 Jun 29, 2023
@erezrokah erezrokah force-pushed the fix/update_postgres_source_sdk_v4 branch 2 times, most recently from 2c92cf5 to 5068de7 Compare July 14, 2023 13:36

func (*Spec) Validate() error {
return nil
CDCId string `json:"cdc_id,omitempty"`
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated the docs to reflect this

@erezrokah erezrokah added automerge Automatically merge once required checks pass and removed no automerge labels Jul 15, 2023
@kodiakhq kodiakhq bot merged commit d2f9cc7 into cloudquery:main Jul 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automerge Automatically merge once required checks pass

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Migrate plugins/source/postgresql to github.com/cloudquery/plugin-sdk/v4

3 participants