dataroaring commented on code in PR #53540:
URL: https://github.com/apache/doris/pull/53540#discussion_r2259221658


##########
be/src/vec/exec/scan/olap_scanner.cpp:
##########
@@ -208,9 +208,18 @@ Status OlapScanner::init() {
                 
ExecEnv::GetInstance()->storage_engine().to_cloud().tablet_hotspot().count(*tablet);
             }
 
-            auto st = tablet->capture_rs_readers(_tablet_reader_params.version,
-                                                 &read_source.rs_splits,
-                                                 
_state->skip_missing_version());
+            Status st {};
+            if (config::is_cloud_mode() && 
_state->enable_query_freshness_tolerance()) {
+                st = std::static_pointer_cast<CloudTablet>(tablet)
+                             ->capture_rs_readers_with_freshness_tolerance(
+                                     _tablet_reader_params.version, 
&read_source.rs_splits,
+                                     _state->skip_missing_version(),
+                                     _state->query_freshness_tolerance_ms());
+            } else {
+                st = tablet->capture_rs_readers(_tablet_reader_params.version,
+                                                &read_source.rs_splits,
+                                                
_state->skip_missing_version());
+            }

Review Comment:
   like it in scan_operator.



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