提交 a46abd97 编写于 作者: G Ganlin Zhao

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

tinyint

TD-16394
上级 7517d3aa
...@@ -1844,9 +1844,8 @@ int32_t leastSQRFunction(SqlFunctionCtx* pCtx) { ...@@ -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) { ...@@ -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;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册