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

Method Lineitem

cpp/src/arrow/acero/tpch_node.cc:3513–3522  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3511}
3512
3513Result<ExecNode*> TpchGenImpl::Lineitem(std::vector<std::string> columns) {
3514 if (!orders_and_line_item_generator_) {
3515 orders_and_line_item_generator_ = std::make_shared<OrdersAndLineItemGenerator>();
3516 }
3517 std::unique_ptr<LineitemGenerator> generator =
3518 std::make_unique<LineitemGenerator>(orders_and_line_item_generator_);
3519 RETURN_NOT_OK(generator->Init(std::move(columns), scale_factor_, batch_size_,
3520 kSeedDist(seed_rng_)));
3521 return plan_->EmplaceNode<TpchNode>(plan_, "Lineitem", std::move(generator));
3522}
3523
3524Result<ExecNode*> TpchGenImpl::Nation(std::vector<std::string> columns) {
3525 return CreateNode<NationGenerator>("Nation", std::move(columns));

Callers 1

Plan_Q1Function · 0.80

Calls 1

InitMethod · 0.45

Tested by

no test coverage detected