diff --git a/src/query/src/qAggMain.c b/src/query/src/qAggMain.c index 19d8ac6f392fe3f96f84ca2779469e647f111b3b..dc61f7d9a489c56e775294f470163d227c7ed353 100644 --- a/src/query/src/qAggMain.c +++ b/src/query/src/qAggMain.c @@ -5119,7 +5119,7 @@ SAggFunctionInfo aAggs[40] = {{ "twa", TSDB_FUNC_TWA, TSDB_FUNC_TWA, - TSDB_BASE_FUNC_SO | TSDB_FUNCSTATE_NEED_TS, + TSDB_FUNCSTATE_SO | TSDB_FUNCSTATE_STABLE | TSDB_FUNCSTATE_NEED_TS, twa_function_setup, twa_function, twa_function_finalizer,