yujun777 commented on code in PR #62453:
URL: https://github.com/apache/doris/pull/62453#discussion_r3115905795


##########
fe/fe-core/src/main/java/org/apache/doris/catalog/stream/OlapTableStream.java:
##########
@@ -154,4 +163,56 @@ void fillTableStreamConsumptionInfo(List<TRow> dataBatch) {
             }
         }
     }
+
+    public boolean hasData(Partition partition) {
+        // if all available visible data has been consumed, return false
+        // todo(TsukiokaKogane): change offset from partition version to 
commit tso
+        return !partitionOffset.containsKey(partition.getId())
+                || 
!partitionOffset.get(partition.getId()).equals(partition.getVisibleVersion())
+                || historicalPartitionOffset.containsKey(partition.getId());

Review Comment:
   not sure if need add  ` ( .. || .. || ..)  && partition.hasData() `  here ? 
maybe it doesn't matter for add or not 



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