bobhan1 opened a new pull request, #65021: URL: https://github.com/apache/doris/pull/65021
## Summary Pick and adapt `70372f547ba72916919b59287fd2acab6cd75ed7` from `selectdb-cloud-upstream/branch-hotfix-selectdb-cloud-4.1.7-minimax`. The source commit was implemented on the old TopN lazy materialization path. This PR applies the same behavior only to the new TopN lazy materialization V2 path: - add a cloud-only session switch for TopN lazy materialization phase-2 file-cache miss handling - use already-downloaded file-cache blocks for full local hits - read remote data directly on cache miss without writing file cache - expose phase-2 local/remote/skip/write file-cache counters in `MaterializeNode` profile - cover both row-store and column-store fetch paths ## Validation - `build-support/clang-format.sh` - `build-support/check-format.sh` - `git diff --check` - `./run-be-ut.sh --run --filter=BlockFileCacheTest.get_downloaded_blocks_if_fully_covered_is_read_only:BlockFileCacheTest.cached_remote_file_reader_remote_only_on_miss -j20` - `./build.sh --be --fe --cloud -j100` - `env -u HTTP_PROXY -u HTTPS_PROXY -u http_proxy -u https_proxy -u ALL_PROXY -u all_proxy ./run-regression-test.sh --run -d cloud_p0/cache/topn_lazy_file_cache -s test_topn_lazy_mat_phase2_no_write_file_cache -g docker -runMode=cloud -dockerSuiteParallel 1` -- 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]
