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

fix spread timestmap column reading sma issue

上级 6b20306b
...@@ -3357,7 +3357,7 @@ int32_t spreadFunction(SqlFunctionCtx* pCtx) { ...@@ -3357,7 +3357,7 @@ int32_t spreadFunction(SqlFunctionCtx* pCtx) {
goto _spread_over; goto _spread_over;
} }
double tmin = 0.0, tmax = 0.0; 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); tmin = (double)GET_INT64_VAL(&pAgg->min);
tmax = (double)GET_INT64_VAL(&pAgg->max); tmax = (double)GET_INT64_VAL(&pAgg->max);
} else if (IS_FLOAT_TYPE(type)) { } else if (IS_FLOAT_TYPE(type)) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册