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

[core] Add validation to forbid setting stream-read-overwrite with 'full-compaction' or 'lookup' changelog producer #2180

Merged
merged 2 commits into from
Oct 30, 2023

Conversation

yuzelin
Copy link
Contributor

@yuzelin yuzelin commented Oct 26, 2023

Purpose

This is because full-compaction and lookup changelog producers will output the changes in later compact snapshot. If we read the changes of the overwrite snapshot, the output is duplicated.

Tests

API and Format

Documentation

…ull-compaction' or 'lookup' changelog producer
|| changelogProducer == ChangelogProducer.LOOKUP)) {
throw new UnsupportedOperationException(
String.format(
"Cannot set %s to true when changelog producer is %s or %s.",
Copy link
Contributor

Choose a reason for hiding this comment

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

Add why, and add a test in CatalogTableITCase.

Copy link
Contributor

@JingsongLi JingsongLi left a comment

Choose a reason for hiding this comment

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

+1

@JingsongLi JingsongLi merged commit 67dc98e into apache:master Oct 30, 2023
9 checks passed
@yuzelin yuzelin deleted the add-validation branch October 30, 2023 03:23
schnappi17 pushed a commit to schnappi17/flink-table-store that referenced this pull request Nov 8, 2023
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