fix:when case compare json type result not correct

This commit is contained in:
obdev
2023-07-11 14:53:55 +00:00
committed by ob-robot
parent ebe04c05a9
commit a77abb22ee
5 changed files with 69 additions and 31 deletions

View File

@ -1842,7 +1842,10 @@ int JtScanNode::get_next_row(ObIJsonBase* in, JtScanCtx* ctx, bool& is_null_valu
total_ = 1;
is_null_value = is_null_result_ = true;
curr_ = iter_ = nullptr;
if (col_info_.parent_id_ == common::OB_INVALID_ID) { ret = OB_ITER_END; }
if (col_info_.parent_id_ == common::OB_INVALID_ID
|| (ctx->jt_op_->get_root_param() == in && ctx->jt_op_->get_root_entry()->reg_column_count() == 0)) {
ret = OB_ITER_END;
}
} else if (hit.size() == 1) {
iter_ = curr_ = hit[0];
is_null_value = is_null_result_ = false;