Skip to content

Commit

Permalink
Fix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
zanmato1984 committed Aug 29, 2024
1 parent 7ff0097 commit 9f67ec9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cpp/src/arrow/acero/hash_join_benchmark.cc
Original file line number Diff line number Diff line change
Expand Up @@ -681,7 +681,8 @@ void RowArrayDecodeBenchmark(benchmark::State& st, const std::shared_ptr<Schema>
ResizableArrayData column;
// Allocate at least 8 rows for the convenience of SIMD decoding.
int log_num_rows_min = std::max(3, bit_util::Log2(batch.length));
column.Init(batch[column_to_decode].type(), default_memory_pool(), log_num_rows_min);
DCHECK_OK(column.Init(batch[column_to_decode].type(), default_memory_pool(),
log_num_rows_min));
st.ResumeTiming();
DCHECK_OK(rows.DecodeSelected(&column, column_to_decode,
static_cast<int>(batch.length), row_ids_decode.data(),
Expand Down

0 comments on commit 9f67ec9

Please sign in to comment.