| 93 | } |
| 94 | |
| 95 | Result<std::vector<std::shared_ptr<Schema>>> UnionDatasetFactory::InspectSchemas( |
| 96 | InspectOptions options) { |
| 97 | std::vector<std::shared_ptr<Schema>> schemas; |
| 98 | |
| 99 | for (const auto& child_factory : factories_) { |
| 100 | ARROW_ASSIGN_OR_RAISE(auto child_schemas, child_factory->InspectSchemas(options)); |
| 101 | ARROW_ASSIGN_OR_RAISE(auto child_schema, UnifySchemas(child_schemas)); |
| 102 | schemas.emplace_back(child_schema); |
| 103 | } |
| 104 | |
| 105 | return schemas; |
| 106 | } |
| 107 | |
| 108 | Result<std::shared_ptr<Dataset>> UnionDatasetFactory::Finish(FinishOptions options) { |
| 109 | std::vector<std::shared_ptr<Dataset>> children; |
nothing calls this directly
no test coverage detected