gavinchou commented on code in PR #67181:
URL: https://github.com/apache/doris/pull/67181#discussion_r3868632009


##########
fe/fe-core/src/main/java/org/apache/doris/planner/ScanNode.java:
##########
@@ -672,7 +676,11 @@ public static void 
setVisibleVersionForOlapScanNodes(List<ScanNode> scanNodes) t
         if (!partitions.isEmpty()) {
             List<Long> versions;
             try {
-                versions = 
CloudPartition.getSnapshotVisibleVersion(partitions);
+                // A time-based change read may have just waited for an old 
transaction to finish.
+                // Bypass the FE cache so the scan uses the version made 
visible by that transaction.
+                versions = hasIncrementalRead

Review Comment:
   seems unnecessary



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