TsukiokaKogane commented on code in PR #63850:
URL: https://github.com/apache/doris/pull/63850#discussion_r3380621638


##########
fe/fe-core/src/main/java/org/apache/doris/catalog/stream/OlapTableStreamWrapper.java:
##########
@@ -163,4 +173,32 @@ public List<Long> 
selectNonEmptyPartitionIds(Collection<Long> partitionIds) {
         }
         return nonEmptyIds;
     }
+
+    public List<Column> getRowBinlogSchema() {
+        return baseTable.getRowBinlogMeta().getSchema();
+    }
+
+    public List<Long> filterHistoryPartitionIds(List<Long> partitionIds) {
+        return partitionIds.stream()
+                .filter(partitionId -> stream.hasHistoricalData(partitionId))
+                .collect(Collectors.toList());
+    }
+
+    public List<Long> filterIncrementalPartitionIds(List<Long> partitionIds) {
+        return partitionIds.stream()
+                .filter(partitionId -> !stream.hasHistoricalData(partitionId)
+                        && stream.hasData(getPartition(partitionId)))
+                .collect(Collectors.toList());
+    }
+
+    public OlapTable getBaseTable() {
+        return baseTable;
+    }
+
+    public BaseTableStream.StreamScanType getStreamScanType() {
+        if (keysType == KeysType.DUP_KEYS) {
+            return BaseTableStream.StreamScanType.APPEND_ONLY;
+        }
+        return stream.getStreamScanType();

Review Comment:
   主要我跟yujun确定了下 默认 olap table stream 都用min delta



-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to