fix:when case compare json type result not correct
This commit is contained in:
@ -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;
|
||||
|
||||
@ -416,6 +416,8 @@ public:
|
||||
ObJsonNull* get_js_null() { return &j_null_; }
|
||||
ObJsonArray* get_js_array() { return &j_arr_; }
|
||||
ObJsonObject* get_js_object() { return &j_obj_; }
|
||||
ObIJsonBase* get_root_param() { return in_; }
|
||||
JtScanNode* get_root_entry() { return jt_root_; }
|
||||
TO_STRING_KV(K_(is_inited),
|
||||
K_(col_count));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user