fix(query): top/bottom parameter check failure on int type

TD-16994
This commit is contained in:
Ganlin Zhao 2022-07-06 09:59:45 +08:00
parent 8c1b9ea60f
commit 144df87ac6
1 changed files with 1 additions and 1 deletions

View File

@ -605,7 +605,7 @@ static int32_t translateTopBot(SFunctionNode* pFunc, char* pErrBuf, int32_t len)
}
SValueNode* pValue = (SValueNode*)pParamNode1;
if (pValue->node.resType.type != TSDB_DATA_TYPE_BIGINT) {
if (!IS_INTEGER_TYPE(pValue->node.resType.type)) {
return invaildFuncParaTypeErrMsg(pErrBuf, len, pFunc->functionName);
}