TsukiokaKogane commented on code in PR #63850:
URL: https://github.com/apache/doris/pull/63850#discussion_r3377439271
##########
fe/fe-core/src/main/java/org/apache/doris/planner/OlapScanNode.java:
##########
@@ -1629,13 +1664,87 @@ public OlapTableStreamUpdate getStreamUpdate() {
Map<Long, Long> prev = Maps.newHashMap();
Map<Long, Long> next = Maps.newHashMap();
for (Long partitionId : getSelectedPartitionIds()) {
- Pair<Long, Long> streamUpdate = ((OlapTableStreamWrapper)
olapTable).getStreamUpdate(partitionId);
+ Pair<Long, Long> streamUpdate = getStreamUpdate(partitionId);
if (streamUpdate.first != null) {
- // prev could be null, ignore
+ // prev could be null, in case of historical scan
prev.put(partitionId, streamUpdate.first);
}
- next.put(partitionId, streamUpdate.second);
+ if (streamUpdate.second != null) {
Review Comment:
not related
--
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]