Skip to content
Open
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
3 changes: 0 additions & 3 deletions source/libs/parser/src/parTranslater.c
Original file line number Diff line number Diff line change
Expand Up @@ -14724,9 +14724,6 @@ static int32_t createStreamReqBuildTriggerSelect(STranslateContext* pCxt, SRealT
if (pPreFilter) {
PAR_ERR_JRET(nodesCollectColumnsFromNode(pPreFilter, NULL, COLLECT_COL_TYPE_TAG, &((SSelectStmt*)*pTriggerSelect)->pProjectionList));
}
PAR_ERR_JRET(createTbnameFunction(&pFunc));
PAR_ERR_JRET(nodesListMakeStrictAppend(&((SSelectStmt*)*pTriggerSelect)->pProjectionList, (SNode*)pFunc));

return code;
_return:
nodesDestroyNode((SNode*)pFunc);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The variable pFunc is no longer used after the changes. This call to nodesDestroyNode can be removed. It would also be good to remove the declaration of pFunc on line 14715 to avoid compiler warnings about an unused variable.

Expand Down
Loading