-
Notifications
You must be signed in to change notification settings - Fork 126
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-24516] multi-aggregate-optimize: replace the information which is printed in "show trace" from aggregate function optimization #4424
Conversation
…is printed in "show trace" from aggregate function optimization
@@ -302,6 +302,13 @@ struct scan_pos | |||
QFILE_TUPLE_POSITION ls_tplpos; /* List file index scan position */ | |||
}; /* Scan position structure */ | |||
|
|||
typedef struct scan_agl SCAN_AGL; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Q] Does AGL stands for Aggregation List?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
agl stands for Aggregation Lookup.
src/query/query_executor.c
Outdated
free (p->s_id.scan_stats.agg_index_name); | ||
SCAN_AGL *agl; | ||
|
||
for (agl = p->s_id.scan_stats.agl; agl; agl = agl->next) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
agl->next : accessing next of the freed agl seems unsafe.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, I modified at the next commit.
agl = (SCAN_AGL *) malloc (sizeof (SCAN_AGL)); | ||
if (agl == NULL) | ||
{ | ||
return ER_FAILED; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
free (agg_index_name);
return ER_FAILED;
http://jira.cubrid.org/browse/CBRD-24516
SHOW TRACE is will be shown as like below: