[Improvement] Simplify expressions for _vconjunct_ctx_ptr (#9816)

This commit is contained in:
Gabriel
2022-05-29 23:05:21 +08:00
committed by GitHub
parent 63aab5ee5d
commit a96b41db7a
2 changed files with 7 additions and 7 deletions

View File

@ -544,8 +544,8 @@ void OlapScanNode::remove_pushed_conjuncts(RuntimeState* state) {
// set vconjunct_ctx is empty, if all conjunct
if (_direct_conjunct_size == 0) {
if (_vconjunct_ctx_ptr.get() != nullptr) {
(*_vconjunct_ctx_ptr.get())->close(state);
if (_vconjunct_ctx_ptr != nullptr) {
(*_vconjunct_ctx_ptr)->close(state);
_vconjunct_ctx_ptr = nullptr;
}
}