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

Clickhouse: Fix setting of normalize batch ID #1836

Closed
wants to merge 3 commits into from

Conversation

Amogh-Bharadwaj
Copy link
Contributor

At the end of NormalizeRecords in Clickhouse, we were updating the normalize batch ID in metadata with normBatchID + 1.
Clickhouse's NormalizeRecords (like postgres) normalizes from normBatchID to syncBatchId. Hence we should update the normalize batch id in metadata to sync batch ID, not normbatchID + 1. This is also what the other destinations do

This PR fixes this batch id setting and also adds a warning log for normbatchid >= syncbatchid

@serprex serprex self-requested a review June 14, 2024 14:23
@Amogh-Bharadwaj
Copy link
Contributor Author

Subset of #1837

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