[6046]<fix> fix ts is null

This commit is contained in:
wangmm0220 2021-08-16 15:16:44 +08:00
parent 059576a3a5
commit 4b9c461c54
1 changed files with 4 additions and 0 deletions

View File

@ -7052,6 +7052,10 @@ static int32_t checkUpdateTagPrjFunctions(SQueryInfo* pQueryInfo, char* msg) {
continue;
}
if(functionId == TSDB_FUNC_DERIVATIVE){ // to avoid ts function id was modufied below
tagTsColExists = false;
}
if (functionId < 0) {
SUdfInfo* pUdfInfo = taosArrayGet(pQueryInfo->pUdfInfo, -1 * functionId - 1);
if (pUdfInfo->funcType == TSDB_UDF_TYPE_AGGREGATE) {