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

Function Materialize

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

Source from the content-addressed store, hash-verified

2431}
2432
2433compute::Expression Materialize(std::vector<std::string> names,
2434 bool include_aug_fields = false) {
2435 if (include_aug_fields) {
2436 for (auto aug_name :
2437 {"__fragment_index", "__batch_index", "__last_in_fragment", "__filename"}) {
2438 names.emplace_back(aug_name);
2439 }
2440 }
2441
2442 std::vector<compute::Expression> exprs;
2443 for (const auto& name : names) {
2444 exprs.push_back(field_ref(name));
2445 }
2446
2447 return project(exprs, names);
2448}
2449} // namespace
2450
2451TEST(ScanNode, Schema) {

Callers 9

TESTFunction · 0.70
DuplicateMethod · 0.50
CoerceMethod · 0.50
Serialized_stateMethod · 0.50
DataptrMethod · 0.50
DataptrMethod · 0.50
DuplicateMethod · 0.50
DataptrMethod · 0.50

Calls 4

field_refFunction · 0.85
projectFunction · 0.85
emplace_backMethod · 0.80
push_backMethod · 0.80

Tested by

no test coverage detected