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

Add ACTIVATE_VERSION message support #607

Closed
wants to merge 149 commits into from
Closed

Conversation

MeltyBot
Copy link
Contributor

@MeltyBot MeltyBot commented May 30, 2022

Migrated from GitLab: https://gitlab.com/meltano/sdk/-/merge_requests/227

Originally created by @aaronsteers on 2021-12-16 23:12:14


Resolves #18, targets !44

From the issue:

When FULL_TABLE replication is selected in the tap:

  1. Initialize a version number (likely an epoch-based integer): https://github.com/transferwise/pipelinewise-tap-snowflake/blob/aa89f2e4235999dbeafc7406a7f8b382542d8d5b/tap_snowflake/sync_strategies/common.py#L33
  2. Include version as property within emitted RECORD messages. https://github.com/transferwise/pipelinewise-tap-snowflake/blob/aa89f2e4235999dbeafc7406a7f8b382542d8d5b/tap_snowflake/sync_strategies/common.py#L200
  3. [ ] Emit ACTIVATE_VERSION at the beginning of the first FULL_TABLE sync operation: https://github.com/transferwise/pipelinewise-tap-snowflake/blob/aa89f2e4235999dbeafc7406a7f8b382542d8d5b/tap_snowflake/sync_strategies/full_table.py#L87-L95
  4. Emit ACTIVATE_VERSION after a successful FULL_TABLE sync: https://github.com/transferwise/pipelinewise-tap-snowflake/blob/aa89f2e4235999dbeafc7406a7f8b382542d8d5b/tap_snowflake/sync_strategies/full_table.py#L114

Except for step #3, this MR should resolve the requirements for ACTIVATE_VERSION. I believe that point #3 is an optional optimization and can safely be omitted from our initial implementation.

@aaronsteers
Copy link
Contributor

Closing as stale. I did not have bandwidth at the time to get everything polished/tested. But future developers could definitely use this as a starting point.

@edgarrmondragon edgarrmondragon deleted the aj-activate_version-support branch January 19, 2024 01:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants