Skip to content

Commit

Permalink
Use recommended parameter to sort
Browse files Browse the repository at this point in the history
  • Loading branch information
lixueclaire committed May 29, 2023
1 parent e19c553 commit 29866cb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cpp/src/arrow_chunk_writer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -658,9 +658,8 @@ Result<std::shared_ptr<arrow::Table>> 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();
Expand Down

0 comments on commit 29866cb

Please sign in to comment.