You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@paimon.apache.org by "yuzelin (via GitHub)" <gi...@apache.org> on 2023/10/26 09:53:56 UTC
[PR] [core] Add validation to forbid setting stream-read-overwrite with 'full-compaction' or 'lookup' changelog producer [incubator-paimon]
yuzelin opened a new pull request, #2180:
URL: https://github.com/apache/incubator-paimon/pull/2180
<!-- Please specify the module before the PR name: [core] ... or [flink] ... -->
### Purpose
<!-- Linking this pull request to the issue -->
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.
<!-- What is the purpose of the change -->
### Tests
<!-- List UT and IT cases to verify this change -->
### API and Format
<!-- Does this change affect API or storage format -->
### Documentation
<!-- Does this change introduce a new feature -->
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@paimon.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [core] Add validation to forbid setting stream-read-overwrite with 'full-compaction' or 'lookup' changelog producer [incubator-paimon]
Posted by "JingsongLi (via GitHub)" <gi...@apache.org>.
JingsongLi merged PR #2180:
URL: https://github.com/apache/incubator-paimon/pull/2180
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@paimon.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [core] Add validation to forbid setting stream-read-overwrite with 'full-compaction' or 'lookup' changelog producer [incubator-paimon]
Posted by "JingsongLi (via GitHub)" <gi...@apache.org>.
JingsongLi commented on code in PR #2180:
URL: https://github.com/apache/incubator-paimon/pull/2180#discussion_r1374056761
##########
paimon-core/src/main/java/org/apache/paimon/schema/SchemaValidation.java:
##########
@@ -87,6 +88,16 @@ public static void validateTableSchema(TableSchema schema) {
"Can not set %s on table without primary keys, please define primary keys.",
CHANGELOG_PRODUCER.key()));
}
+ if (options.streamingReadOverwrite()
+ && (changelogProducer == ChangelogProducer.FULL_COMPACTION
+ || changelogProducer == ChangelogProducer.LOOKUP)) {
+ throw new UnsupportedOperationException(
+ String.format(
+ "Cannot set %s to true when changelog producer is %s or %s.",
Review Comment:
Add why, and add a test in `CatalogTableITCase`.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@paimon.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org