| 491 | } |
| 492 | |
| 493 | void SetSchema(std::vector<std::shared_ptr<Field>> fields) { |
| 494 | opts_->dataset_schema = schema(std::move(fields)); |
| 495 | ASSERT_OK_AND_ASSIGN(auto projection, |
| 496 | ProjectionDescr::Default(*opts_->dataset_schema, |
| 497 | /*add_augmented_fields=*/true)); |
| 498 | SetProjection(opts_.get(), std::move(projection)); |
| 499 | } |
| 500 | |
| 501 | void SetFilter(compute::Expression filter) { |
| 502 | ASSERT_OK_AND_ASSIGN(opts_->filter, filter.Bind(*opts_->dataset_schema)); |
nothing calls this directly
no test coverage detected