This is an automated email from the ASF dual-hosted git repository.
morningman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-doris.git
The following commit(s) were added to refs/heads/master by this push:
new 86d2ddc [UT] Fix bug for cache unit test (#5766)
86d2ddc is described below
commit 86d2ddc503878c157ea3089ce946517dd79c0f93
Author: xinghuayu007 <[email protected]>
AuthorDate: Sat May 8 10:57:09 2021 +0800
[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 86539e1..b649491 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);
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]