[Bug](topn opt) Fix be crash when enable topn opt with larger thresho… (#18858)

topn opt should be inited when update it
This commit is contained in:
lihangyu
2023-04-21 17:45:00 +08:00
committed by GitHub
parent 5706bef2b3
commit af20b2c95e
9 changed files with 1689 additions and 25 deletions

View File

@ -124,6 +124,10 @@ Status RuntimePredicate::update(const Field& value, const String& col_name, bool
return Status::OK();
}
if (!_inited) {
return Status::OK();
}
std::unique_lock<std::shared_mutex> wlock(_rwlock);
// TODO why null