From b3eacb69f9496299a9f3e4f388ac184265ac8a2f Mon Sep 17 00:00:00 2001 From: xinghuayu007 <1450306854@qq.com> Date: Fri, 30 Apr 2021 10:14:07 +0800 Subject: [PATCH] check part_rowbatch_list is empty (#5727) Co-authored-by: wangxixu --- be/src/runtime/cache/result_cache.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/be/src/runtime/cache/result_cache.cpp b/be/src/runtime/cache/result_cache.cpp index cda7b960a4..86539e1394 100644 --- a/be/src/runtime/cache/result_cache.cpp +++ b/be/src/runtime/cache/result_cache.cpp @@ -140,6 +140,9 @@ void ResultCache::fetch(const PFetchCacheRequest* request, PFetchCacheResult* re break; } } + if (part_rowbatch_list.empty()) { + status = PCacheStatus::EMPTY_DATA; + } result->set_status(status); }