| 917 | } |
| 918 | |
| 919 | Status ScannerBuilder::Project(std::vector<std::string> columns) { |
| 920 | ARROW_ASSIGN_OR_RAISE( |
| 921 | auto projection, |
| 922 | ProjectionDescr::FromNames(std::move(columns), *scan_options_->dataset_schema, |
| 923 | scan_options_->add_augmented_fields)); |
| 924 | SetProjection(scan_options_.get(), std::move(projection)); |
| 925 | return Status::OK(); |
| 926 | } |
| 927 | |
| 928 | Status ScannerBuilder::Project(std::vector<compute::Expression> exprs, |
| 929 | std::vector<std::string> names) { |