Skip to content
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

[Source-Postgres] : Implement WASS algorithm #41649

Merged
merged 60 commits into from
Jul 17, 2024
Merged

[Source-Postgres] : Implement WASS algorithm #41649

merged 60 commits into from
Jul 17, 2024

Conversation

akashkulk
Copy link
Contributor

@akashkulk akashkulk commented Jul 11, 2024

Port of #38240 for Postgres

@akashkulk akashkulk marked this pull request as ready for review July 15, 2024 16:42
@akashkulk akashkulk requested review from a team as code owners July 15, 2024 16:42
final var propertiesManager = new RelationalDbDebeziumPropertiesManager(
PostgresCdcProperties.getDebeziumDefaultProperties(database), sourceConfig, catalog, cdcStreamList);
final var eventConverter = new RelationalDbDebeziumEventConverter(new PostgresCdcConnectorMetadataInjector(), emittedAt);
// Debezium is started for streams that have been started - that is they have been partially or
Copy link
Contributor

Choose a reason for hiding this comment

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

nit and optional: can you also note this is for incremental streams? (better yet I think you can put following logic into a separate function so it's pure wass operation (incremental streams only) so it doesn't confuse readers with full refresh)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've added the comment. However, we need to figure out the started cdc stream list here so that we can figure out in line 288 which of the scenarios the sync falls under :

  1. First sync (no prev state) : in which case we do initial sync + CDC
  2. Purely incremental sync
  3. WASS case

Copy link
Contributor

@theyueli theyueli left a comment

Choose a reason for hiding this comment

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

Looks good to me, thanks for the changes!

@octavia-squidington-iii octavia-squidington-iii removed the CDK Connector Development Kit label Jul 17, 2024
@akashkulk akashkulk merged commit cb68670 into master Jul 17, 2024
34 checks passed
@akashkulk akashkulk deleted the akash/pg-wass branch July 17, 2024 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/connectors Connector related issues area/documentation Improvements or additions to documentation connectors/source/mysql connectors/source/postgres
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants