| 56 | DatasetFactory::DatasetFactory() : root_partition_(compute::literal(true)) {} |
| 57 | |
| 58 | Result<std::shared_ptr<Schema>> DatasetFactory::Inspect(InspectOptions options) { |
| 59 | ARROW_ASSIGN_OR_RAISE(auto schemas, InspectSchemas(std::move(options))); |
| 60 | |
| 61 | if (schemas.empty()) { |
| 62 | return arrow::schema({}); |
| 63 | } |
| 64 | |
| 65 | return UnifySchemas(schemas, options.field_merge_options); |
| 66 | } |
| 67 | |
| 68 | Result<std::shared_ptr<Dataset>> DatasetFactory::Finish() { |
| 69 | FinishOptions options; |
no test coverage detected