From 86d2ddc503878c157ea3089ce946517dd79c0f93 Mon Sep 17 00:00:00 2001 From: xinghuayu007 <1450306854@qq.com> Date: Sat, 8 May 2021 10:57:09 +0800 Subject: [PATCH] [UT] Fix bug for cache unit test (#5766) For #5726 . Last commit is not logic perfect, which will cause some unit tests not passed. --- be/src/runtime/cache/result_cache.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/be/src/runtime/cache/result_cache.cpp b/be/src/runtime/cache/result_cache.cpp index 86539e1394..b649491e55 100644 --- a/be/src/runtime/cache/result_cache.cpp +++ b/be/src/runtime/cache/result_cache.cpp @@ -140,7 +140,7 @@ void ResultCache::fetch(const PFetchCacheRequest* request, PFetchCacheResult* re break; } } - if (part_rowbatch_list.empty()) { + if (status == PCacheStatus::CACHE_OK && part_rowbatch_list.empty()) { status = PCacheStatus::EMPTY_DATA; } result->set_status(status);