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