Skip to content

Commit 9549853

Browse files
author
Rafał Hibner
committed
Format
1 parent 1522d4a commit 9549853

3 files changed

Lines changed: 9 additions & 8 deletions

File tree

cpp/src/arrow/acero/options.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -200,20 +200,20 @@ class ARROW_ACERO_EXPORT RecordBatchReaderSourceNodeOptions : public ExecNodeOpt
200200
/// Create an instance from values
201201
RecordBatchReaderSourceNodeOptions(std::shared_ptr<RecordBatchReader> reader,
202202
arrow::internal::Executor* io_executor = NULLPTR,
203-
bool implicit_ordering=false)
204-
: reader(std::move(reader)), io_executor(io_executor),implicit_ordering(implicit_ordering) {}
203+
bool implicit_ordering = false)
204+
: reader(std::move(reader)),
205+
io_executor(io_executor),
206+
implicit_ordering(implicit_ordering) {}
205207

206208
/// \brief The RecordBatchReader which acts as the data source
207209
std::shared_ptr<RecordBatchReader> reader;
208210

209-
210211
/// \brief The executor to use for the reader
211212
///
212213
/// Defaults to the default I/O executor.
213214
arrow::internal::Executor* io_executor;
214215

215-
216-
bool implicit_ordering{false};
216+
bool implicit_ordering{false};
217217
};
218218

219219
/// a source node that reads from an iterator of array vectors

cpp/src/arrow/acero/source_node.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,8 @@ struct RecordBatchReaderSourceNode : public SourceNode {
416416
const auto& cast_options =
417417
checked_cast<const RecordBatchReaderSourceNodeOptions&>(options);
418418
auto& reader = cast_options.reader;
419-
Ordering ordering = cast_options.implicit_ordering?Ordering::Implicit():Ordering::Unordered();
419+
Ordering ordering =
420+
cast_options.implicit_ordering ? Ordering::Implicit() : Ordering::Unordered();
420421
auto io_executor = cast_options.io_executor;
421422

422423
if (reader == nullptr) {

cpp/src/arrow/dataset/file_base.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -556,8 +556,8 @@ Result<acero::ExecNode*> MakeWriteNode(acero::ExecPlan* plan,
556556

557557
std::shared_ptr<DatasetWritingSinkNodeConsumer> consumer =
558558
std::make_shared<DatasetWritingSinkNodeConsumer>(
559-
custom_schema,
560-
write_node_options.write_options, write_node_options.max_rows_queued);
559+
custom_schema, write_node_options.write_options,
560+
write_node_options.max_rows_queued);
561561
ARROW_ASSIGN_OR_RAISE(
562562
auto node,
563563
// to preserve order explicitly sequence the exec batches

0 commit comments

Comments
 (0)