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

Function MakeDatasetFromSchema

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

The basic evolution strategy doesn't really need any info from the dataset or the fragment other than the schema so we just make a dummy dataset/fragment here.

Source from the content-addressed store, hash-verified

64// or the fragment other than the schema so we just make a dummy dataset/fragment
65// here.
66std::unique_ptr<Dataset> MakeDatasetFromSchema(std::shared_ptr<Schema> sch) {
67 return std::make_unique<InMemoryDataset>(std::move(sch), RecordBatchVector{});
68}
69
70std::unique_ptr<Fragment> MakeSomeFragment(std::shared_ptr<Schema> sch) {
71 return std::make_unique<InMemoryFragment>(std::move(sch), RecordBatchVector{});

Callers 1

TESTFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected