MCPcopy Create free account
hub / github.com/bytedance/bolt / createLocalMergeNode

Function createLocalMergeNode

bolt/exec/tests/utils/PlanBuilder.cpp:1021–1032  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1019
1020namespace {
1021core::PlanNodePtr createLocalMergeNode(
1022 const core::PlanNodeId& id,
1023 const std::vector<std::string>& keys,
1024 std::vector<core::PlanNodePtr> sources,
1025 memory::MemoryPool* pool) {
1026 const auto& inputType = sources[0]->outputType();
1027 auto [sortingKeys, sortingOrders] =
1028 parseOrderByClauses(keys, inputType, pool);
1029
1030 return std::make_shared<core::LocalMergeNode>(
1031 id, std::move(sortingKeys), std::move(sortingOrders), std::move(sources));
1032}
1033} // namespace
1034
1035PlanBuilder& PlanBuilder::localMerge(const std::vector<std::string>& keys) {

Callers 1

PlanBuilder.cppFile · 0.85

Calls 2

parseOrderByClausesFunction · 0.85
outputTypeMethod · 0.80

Tested by

no test coverage detected