MCPcopy Create free account
hub / github.com/apache/arrow / Inspect

Method Inspect

cpp/src/arrow/dataset/discovery.cc:58–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56DatasetFactory::DatasetFactory() : root_partition_(compute::literal(true)) {}
57
58Result<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
68Result<std::shared_ptr<Dataset>> DatasetFactory::Finish() {
69 FinishOptions options;

Callers 1

InspectSchemasMethod · 0.45

Calls 3

UnifySchemasFunction · 0.85
schemaFunction · 0.50
emptyMethod · 0.45

Tested by

no test coverage detected