fix spread timestmap column reading sma issue

This commit is contained in:
Ganlin Zhao 2023-04-13 14:58:13 +08:00
parent 6b20306bef
commit c7dd22ad1c
1 changed files with 1 additions and 1 deletions

View File

@ -3357,7 +3357,7 @@ int32_t spreadFunction(SqlFunctionCtx* pCtx) {
goto _spread_over;
}
double tmin = 0.0, tmax = 0.0;
if (IS_SIGNED_NUMERIC_TYPE(type)) {
if (IS_SIGNED_NUMERIC_TYPE(type) || IS_TIMESTAMP_TYPE(type)) {
tmin = (double)GET_INT64_VAL(&pAgg->min);
tmax = (double)GET_INT64_VAL(&pAgg->max);
} else if (IS_FLOAT_TYPE(type)) {