From 3b708834b885982031ef278d2aa7bfb8b8f80de9 Mon Sep 17 00:00:00 2001 From: Yuan Zhou Date: Wed, 11 Aug 2021 15:43:42 +0800 Subject: [PATCH] fix decimal partial sum Signed-off-by: Yuan Zhou --- .../cpp/src/codegen/arrow_compute/ext/actions_impl.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/native-sql-engine/cpp/src/codegen/arrow_compute/ext/actions_impl.cc b/native-sql-engine/cpp/src/codegen/arrow_compute/ext/actions_impl.cc index 658aeb9d6..5fbd39ff7 100644 --- a/native-sql-engine/cpp/src/codegen/arrow_compute/ext/actions_impl.cc +++ b/native-sql-engine/cpp/src/codegen/arrow_compute/ext/actions_impl.cc @@ -2093,7 +2093,7 @@ class SumActionPartialAppend(true); } else { builder_->AppendNull(); - builder_isempty_->AppendNull(); + builder_isempty_->Append(false); } } RETURN_NOT_OK(builder_->Finish(&arr_out)); @@ -2116,7 +2116,7 @@ class SumActionPartialAppend(true); } else { builder_->AppendNull(); - builder_isempty_->AppendNull(); + builder_isempty_->Append(false); } } RETURN_NOT_OK(builder_->Finish(&arr_out));