Skip to content

Commit

Permalink
fix: error msg when invalid operator
Browse files Browse the repository at this point in the history
  • Loading branch information
facetosea committed Nov 17, 2023
1 parent 5dc235e commit e6d1cce
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions source/libs/parser/src/parTranslater.c
Original file line number Diff line number Diff line change
Expand Up @@ -1443,6 +1443,12 @@ static EDealRes translateOperator(STranslateContext* pCxt, SOperatorNode* pOp) {
return generateDealNodeErrMsg(pCxt, TSDB_CODE_PAR_WRONG_VALUE_TYPE, pOp->node.aliasName);
}

int32_t res = scalarGetOperatorResultType(pOp);
if (TSDB_CODE_SUCCESS != res) {
pCxt->errCode = res;
return DEAL_RES_CONTINUE;
}

return DEAL_RES_CONTINUE;
}

Expand Down

0 comments on commit e6d1cce

Please sign in to comment.