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

Method Make

cpp/src/arrow/dataset/dataset.cc:296–307  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

294}
295
296Result<std::shared_ptr<UnionDataset>> UnionDataset::Make(std::shared_ptr<Schema> schema,
297 DatasetVector children) {
298 for (const auto& child : children) {
299 if (!child->schema()->Equals(*schema)) {
300 return Status::TypeError("child Dataset had schema ", *child->schema(),
301 " but the union schema was ", *schema);
302 }
303 }
304
305 return std::shared_ptr<UnionDataset>(
306 new UnionDataset(std::move(schema), std::move(children)));
307}
308
309Result<std::shared_ptr<Dataset>> UnionDataset::ReplaceSchema(
310 std::shared_ptr<Schema> schema) const {

Callers

nothing calls this directly

Calls 3

TypeErrorFunction · 0.50
EqualsMethod · 0.45
schemaMethod · 0.45

Tested by

no test coverage detected