From 695aff8d1e5d683a49bc46177f083ac4fad5ec0b Mon Sep 17 00:00:00 2001 From: Junming Chen Date: Mon, 13 Nov 2023 10:02:39 +0800 Subject: [PATCH] Update cpp/src/arrow/array/array_dict.cc Co-authored-by: Sutou Kouhei --- cpp/src/arrow/array/array_dict.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cpp/src/arrow/array/array_dict.cc b/cpp/src/arrow/array/array_dict.cc index 5602ee2edaf2c..0998f67e7373b 100644 --- a/cpp/src/arrow/array/array_dict.cc +++ b/cpp/src/arrow/array/array_dict.cc @@ -379,8 +379,7 @@ Result DictionaryArray::CountNullValues() const { return this->indices()->null_count(); } - ARROW_ASSIGN_OR_RAISE(int64_t null_count, CountDictionaryArrayNullValues(data_)); - return null_count; + return CountDictionaryArrayNullValues(data_); } Result> DictionaryArray::Compact(MemoryPool* pool) const {