From 8d789e51847fc3240dce4cdebc76836be83ad40e Mon Sep 17 00:00:00 2001 From: dapan1121 Date: Wed, 20 Oct 2021 11:28:23 +0800 Subject: [PATCH] fix bug --- src/query/src/qAggMain.c | 6 +++--- tests/script/sh/prepare_udf.sh | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/query/src/qAggMain.c b/src/query/src/qAggMain.c index 00b9b13d33..3fe99e1742 100644 --- a/src/query/src/qAggMain.c +++ b/src/query/src/qAggMain.c @@ -5434,7 +5434,7 @@ SAggFunctionInfo aAggs[] = {{ "ceil", TSDB_FUNC_CEIL, TSDB_FUNC_CEIL, - TSDB_FUNCSTATE_SO | TSDB_FUNCSTATE_STABLE | TSDB_FUNCSTATE_NEED_TS | TSDB_FUNCSTATE_SCALAR, + TSDB_FUNCSTATE_MO | TSDB_FUNCSTATE_STABLE | TSDB_FUNCSTATE_NEED_TS | TSDB_FUNCSTATE_SCALAR, function_setup, ceil_function, doFinalizer, @@ -5445,7 +5445,7 @@ SAggFunctionInfo aAggs[] = {{ "floor", TSDB_FUNC_FLOOR, TSDB_FUNC_FLOOR, - TSDB_FUNCSTATE_SO | TSDB_FUNCSTATE_STABLE | TSDB_FUNCSTATE_NEED_TS | TSDB_FUNCSTATE_SCALAR, + TSDB_FUNCSTATE_MO | TSDB_FUNCSTATE_STABLE | TSDB_FUNCSTATE_NEED_TS | TSDB_FUNCSTATE_SCALAR, function_setup, floor_function, doFinalizer, @@ -5456,7 +5456,7 @@ SAggFunctionInfo aAggs[] = {{ "round", TSDB_FUNC_ROUND, TSDB_FUNC_ROUND, - TSDB_FUNCSTATE_SO | TSDB_FUNCSTATE_STABLE | TSDB_FUNCSTATE_NEED_TS | TSDB_FUNCSTATE_SCALAR, + TSDB_FUNCSTATE_MO | TSDB_FUNCSTATE_STABLE | TSDB_FUNCSTATE_NEED_TS | TSDB_FUNCSTATE_SCALAR, function_setup, round_function, doFinalizer, diff --git a/tests/script/sh/prepare_udf.sh b/tests/script/sh/prepare_udf.sh index 43d5813fac..c197ccfa97 100644 --- a/tests/script/sh/prepare_udf.sh +++ b/tests/script/sh/prepare_udf.sh @@ -9,6 +9,7 @@ touch /tmp/normal gcc -g -O0 -fPIC -shared sh/sum_double.c -o /tmp/sum_double.so gcc -g -O0 -fPIC -shared sh/add_one.c -o /tmp/add_one.so +gcc -g -O0 -fPIC -shared sh/add_one_64232.c -o /tmp/add_one_64232.so gcc -g -O0 -fPIC -shared sh/sub_one.c -o /tmp/sub_one.so gcc -g -O0 -fPIC -shared sh/demo.c -o /tmp/demo.so gcc -g -O0 -fPIC -shared sh/abs_max.c -o /tmp/abs_max.so -- GitLab