diff --git a/cpp/src/arrow/dataset/scan_node.cc b/cpp/src/arrow/dataset/scan_node.cc index 46cc1dc6c8c3..84ae9c830775 100644 --- a/cpp/src/arrow/dataset/scan_node.cc +++ b/cpp/src/arrow/dataset/scan_node.cc @@ -387,9 +387,6 @@ class ScanNode : public acero::ExecNode, public acero::TracedNode { scan_tasks->AddTask(std::make_unique(node, state_view, i)); } return Status::OK(); - // The "list fragments" task doesn't actually end until the fragments are - // all scanned. This allows us to enforce fragment readahead. - return list_and_scan_done; } // Take the dataset options, and the fragment evolution, and figure out exactly how