refactor(query): set stateduration function default time unit as db

precision
This commit is contained in:
Ganlin Zhao 2022-06-30 11:32:00 +08:00
parent a2bdaf8a93
commit 63d799feeb
1 changed files with 1 additions and 1 deletions

View File

@ -4283,7 +4283,7 @@ int32_t stateDurationFunction(SqlFunctionCtx* pCtx) {
SColumnInfoData* pOutput = (SColumnInfoData*)pCtx->pOutput;
// TODO: process timeUnit for different db precisions
int32_t timeUnit = 1000;
int32_t timeUnit = 1;
if (pCtx->numOfParams == 5) { // TODO: param number incorrect
timeUnit = pCtx->param[3].param.i;
}