[UT] Fix bug for cache unit test (#5766)
For #5726 . Last commit is not logic perfect, which will cause some unit tests not passed.
This commit is contained in:
2
be/src/runtime/cache/result_cache.cpp
vendored
2
be/src/runtime/cache/result_cache.cpp
vendored
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user