build on win

This commit is contained in:
xsren 2025-01-02 18:04:45 +08:00
parent cb1ed29872
commit 9a34af9e95
1 changed files with 6 additions and 6 deletions

View File

@ -7440,13 +7440,13 @@ static EDealRes rewriteSingleColsFunc(SNode** pNode, void* pContext) {
SNode* pExpr = nodesListGetNode(pFunc->pParameterList, 1); SNode* pExpr = nodesListGetNode(pFunc->pParameterList, 1);
if (nodeType(pSelectFunc) != QUERY_NODE_FUNCTION) { if (nodeType(pSelectFunc) != QUERY_NODE_FUNCTION) {
pCxt->status = TSDB_CODE_PAR_INVALID_COLS_SELECTFUNC; pCxt->status = TSDB_CODE_PAR_INVALID_COLS_SELECTFUNC;
parserError("Invalid cols function, the first parameter must be a select function"); parserError("%s Invalid cols function, the first parameter must be a select function", __func__);
return DEAL_RES_ERROR; return DEAL_RES_ERROR;
} }
if (pFunc->node.asAlias) { if (pFunc->node.asAlias) {
if (((SExprNode*)pExpr)->asAlias) { if (((SExprNode*)pExpr)->asAlias) {
pCxt->status = TSDB_CODE_INVALID_COLS_ALIAS; pCxt->status = TSDB_CODE_INVALID_COLS_ALIAS;
parserError("Invalid using alias for cols function"); parserError("%s Invalid using alias for cols function", __func__);
return DEAL_RES_ERROR; return DEAL_RES_ERROR;
} else { } else {
((SExprNode*)pExpr)->asAlias = true; ((SExprNode*)pExpr)->asAlias = true;
@ -7478,7 +7478,7 @@ static EDealRes rewriteSingleColsFunc(SNode** pNode, void* pContext) {
nodesRewriteExpr(&pNewNode, pushDownBindSelectFunc, &pCxt); nodesRewriteExpr(&pNewNode, pushDownBindSelectFunc, &pCxt);
} else { } else {
pCxt->status = TSDB_CODE_PAR_INVALID_COLS_FUNCTION; pCxt->status = TSDB_CODE_PAR_INVALID_COLS_FUNCTION;
parserError("Invalid cols function, the first parameter must be a select function"); parserError("%s Invalid cols function, the first parameter must be a select function", __func__);
return DEAL_RES_ERROR; return DEAL_RES_ERROR;
} }
nodesDestroyNode(*pNode); nodesDestroyNode(*pNode);
@ -7532,14 +7532,14 @@ static int32_t rewriteColsFunction(STranslateContext* pCxt, SNodeList** nodeList
SFunctionNode* pFunc = (SFunctionNode*)pTmpNode; SFunctionNode* pFunc = (SFunctionNode*)pTmpNode;
if(pFunc->node.asAlias) { if(pFunc->node.asAlias) {
code = TSDB_CODE_INVALID_COLS_ALIAS; code = TSDB_CODE_INVALID_COLS_ALIAS;
parserError("Invalid using alias for cols function"); parserError("%s Invalid using alias for cols function", __func__);
goto _end; goto _end;
} }
SNode* pSelectFunc = nodesListGetNode(pFunc->pParameterList, 0); SNode* pSelectFunc = nodesListGetNode(pFunc->pParameterList, 0);
if (nodeType(pSelectFunc) != QUERY_NODE_FUNCTION) { if (nodeType(pSelectFunc) != QUERY_NODE_FUNCTION) {
code = TSDB_CODE_PAR_INVALID_COLS_FUNCTION; code = TSDB_CODE_PAR_INVALID_COLS_FUNCTION;
parserError("Invalid cols function, the first parameter must be a select function"); parserError("%s Invalid cols function, the first parameter must be a select function", __func__);
goto _end; goto _end;
} }
int32_t selectFuncIndex = getSelectFuncIndex(*selectFuncList, pSelectFunc); int32_t selectFuncIndex = getSelectFuncIndex(*selectFuncList, pSelectFunc);
@ -7560,7 +7560,7 @@ static int32_t rewriteColsFunction(STranslateContext* pCxt, SNodeList** nodeList
nodesRewriteExpr(&pNewNode, pushDownBindSelectFunc, &pCxt); nodesRewriteExpr(&pNewNode, pushDownBindSelectFunc, &pCxt);
} else { } else {
code = TSDB_CODE_PAR_INVALID_COLS_FUNCTION; code = TSDB_CODE_PAR_INVALID_COLS_FUNCTION;
parserError("Invalid cols function, the first parameter must be a select function"); parserError("%s Invalid cols function, the first parameter must be a select function", __func__);
goto _end; goto _end;
} }
if (TSDB_CODE_SUCCESS != code) goto _end; if (TSDB_CODE_SUCCESS != code) goto _end;