From ffe38b0286be8e0cbc48aed091fb119a95f0366c Mon Sep 17 00:00:00 2001 From: Jeremy Aguilon Date: Thu, 30 May 2024 00:47:01 +0900 Subject: [PATCH] lint --- cpp/src/arrow/acero/unmaterialized_table.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cpp/src/arrow/acero/unmaterialized_table.h b/cpp/src/arrow/acero/unmaterialized_table.h index 6444df6d463a2..d2d97a2e0afb9 100644 --- a/cpp/src/arrow/acero/unmaterialized_table.h +++ b/cpp/src/arrow/acero/unmaterialized_table.h @@ -234,13 +234,13 @@ class UnmaterializedCompositeTable { arrow::Result> FlattenSlices(int table_index) { std::vector flattened_blocks; - arrow::RecordBatch* active_rb = nullptr; + arrow::RecordBatch* active_rb = NULL; size_t start = -1; size_t end = -1; for (const auto& slice : slices) { const auto& [batch, block_start, block_end] = slice.components[table_index]; - if (active_rb == nullptr) { + if (active_rb == NULL) { active_rb = batch; start = block_start; end = block_end; @@ -252,7 +252,7 @@ class UnmaterializedCompositeTable { start = block_start; end = block_end; } - DCHECK_NE(active_rb, nullptr); + DCHECK_NE(active_rb, NULL); } // flush the last batch flattened_blocks.push_back({active_rb, start, end});