fix(query): fix leastsquares function random result when input is

tinyint

TD-16394
This commit is contained in:
Ganlin Zhao 2022-06-21 19:22:38 +08:00
parent 7517d3aa72
commit a46abd974b
1 changed files with 1 additions and 3 deletions

View File

@ -1844,9 +1844,8 @@ int32_t leastSQRFunction(SqlFunctionCtx* pCtx) {
} }
numOfElem++; numOfElem++;
LEASTSQR_CAL(param, x, plist, i, pInfo->stepVal); LEASTSQR_CAL(param, x, plist, i, pInfo->stepVal);
break;
} }
break;
} }
case TSDB_DATA_TYPE_SMALLINT: { case TSDB_DATA_TYPE_SMALLINT: {
int16_t* plist = (int16_t*)pCol->pData; int16_t* plist = (int16_t*)pCol->pData;
@ -1871,7 +1870,6 @@ int32_t leastSQRFunction(SqlFunctionCtx* pCtx) {
numOfElem++; numOfElem++;
LEASTSQR_CAL(param, x, plist, i, pInfo->stepVal); LEASTSQR_CAL(param, x, plist, i, pInfo->stepVal);
} }
break; break;
} }