From f7083c71684ccd57c8a0b908595b66775416a17d Mon Sep 17 00:00:00 2001 From: lixueclaire Date: Mon, 29 May 2023 12:47:09 +0800 Subject: [PATCH] [Improvement][C++] Use recommended parameter to sort in Writer (#177) --- cpp/src/arrow_chunk_writer.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cpp/src/arrow_chunk_writer.cc b/cpp/src/arrow_chunk_writer.cc index 97ca134c8..131830e7e 100644 --- a/cpp/src/arrow_chunk_writer.cc +++ b/cpp/src/arrow_chunk_writer.cc @@ -658,9 +658,8 @@ Result> EdgeChunkWriter::sortTable( const std::string& column_name) { auto exec_context = arrow::compute::default_exec_context(); auto plan = arrow_acero_namespace::ExecPlan::Make(exec_context).ValueOrDie(); - int max_batch_size = 2; - auto table_source_options = arrow_acero_namespace::TableSourceNodeOptions{ - input_table, max_batch_size}; + auto table_source_options = + arrow_acero_namespace::TableSourceNodeOptions{input_table}; auto source = arrow_acero_namespace::MakeExecNode("table_source", plan.get(), {}, table_source_options) .ValueOrDie();