Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CBRD-25722] Enable correlated subquery caching with type_sp included in the subquery. #5671

Draft
wants to merge 2 commits into
base: feature/plcsql-p1n
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 22 additions & 1 deletion src/parser/xasl_generation.c
Original file line number Diff line number Diff line change
Expand Up @@ -27604,6 +27604,28 @@ pt_make_sq_cache_key_struct (QPROC_DB_VALUE_LIST key_struct, void *p, int type)
}
break;

case TYPE_SP:
regu_var_list_p = regu_src->value.sp_ptr->args;
while (regu_var_list_p)
{
if (!regu_var_list_p)
{
return ER_FAILED;
}
regu_src = &regu_var_list_p->value;
ret = pt_make_sq_cache_key_struct (key_struct, (void *) regu_src, SQ_TYPE_REGU_VAR);
if (ret == ER_FAILED)
{
return ER_FAILED;
}
else
{
cnt += ret;
}
regu_var_list_p = regu_var_list_p->next;
}
break;

case TYPE_POSITION:
case TYPE_LIST_ID:
/* Currently not supported, implement later */
Expand All @@ -27627,7 +27649,6 @@ pt_make_sq_cache_key_struct (QPROC_DB_VALUE_LIST key_struct, void *p, int type)
case TYPE_REGUVAL_LIST:
case TYPE_REGU_VAR_LIST:
case TYPE_FUNC:
case TYPE_SP:
/* Result Cache not supported */
return ER_FAILED;
break;
Expand Down
Loading