| 996 | } |
| 997 | |
| 998 | Result<std::shared_ptr<ScanOptions>> ScannerBuilder::GetScanOptions() { |
| 999 | if (!scan_options_->projection.IsBound()) { |
| 1000 | RETURN_NOT_OK(Project(scan_options_->dataset_schema->field_names())); |
| 1001 | } |
| 1002 | |
| 1003 | return scan_options_; |
| 1004 | } |
| 1005 | |
| 1006 | Result<std::shared_ptr<Scanner>> ScannerBuilder::Finish() { |
| 1007 | ARROW_ASSIGN_OR_RAISE(auto scan_options, GetScanOptions()); |
nothing calls this directly
no test coverage detected