yuzelin commented on code in PR #805:
URL: https://github.com/apache/incubator-paimon/pull/805#discussion_r1155936259


##########
paimon-flink/paimon-flink-common/src/main/java/org/apache/paimon/flink/source/CompactorSourceBuilder.java:
##########
@@ -92,14 +93,27 @@ public CompactorSourceBuilder 
withPartitions(List<Map<String, String>> partition
                                     .toArray(Predicate[]::new));
         }
 
-        ReadBuilder readBuilder = 
bucketsTable.newReadBuilder().withFilter(partitionPredicate);
         if (isContinuous) {
+            // set 'streaming-compact' and remove 'scan.bounded.watermark' if 
exists
+            Options options = Options.fromMap(bucketsTable.options());
+            options.set(CoreOptions.STREAMING_COMPACT, true);
+            Map<String, String> newOptions = options.toMap();
+            if (options.contains(CoreOptions.SCAN_BOUNDED_WATERMARK)) {
+                newOptions.remove(CoreOptions.SCAN_BOUNDED_WATERMARK.key());

Review Comment:
   `SCAN_BOUNDED_WATERMARK`, `SCAN_TIMESTAMP_MILLIS`, `SCAN_SNAPSHOT_ID` may 
have conflict with new options when checking.
   
   I think it's more reasonable to pass a map like `scan.bounded.watermark -> 
null`, then in `Table#copy`, we can remove the `ConfigOption` if passing value 
is null. WDYT?



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to