chore: code optimization

This commit is contained in:
kailixu 2023-10-27 14:41:17 +08:00
parent dc8cb7a99e
commit 4ea44c429d
1 changed files with 2 additions and 3 deletions

View File

@ -5164,16 +5164,15 @@ static int32_t checkTableColsSchema(STranslateContext* pCxt, SHashObj* pHash, in
int32_t code = TSDB_CODE_SUCCESS;
int32_t colIndex = 0;
bool isCalcRollup = false;
int32_t rowSize = 0;
SNode* pNode = NULL;
char* pFunc = NULL;
bool isCalcRollup = false;
if (pRollupFuncs) {
pFunc = ((SFunctionNode*)nodesListGetNode(pRollupFuncs, 0))->functionName;
isCalcRollup = caclRollupFunc(pFunc);
}
FOREACH(pNode, pCols) {
SColumnDefNode* pCol = (SColumnDefNode*)pNode;
if (0 == colIndex) {
@ -5213,7 +5212,7 @@ static int32_t checkTableColsSchema(STranslateContext* pCxt, SHashObj* pHash, in
} else {
break;
}
// next column
++colIndex;
}