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

Method S_COMMENT

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

Source from the content-addressed store, hash-verified

2624 }
2625
2626 Status S_COMMENT(size_t thread_index) {
2627 ThreadLocalData& tld = thread_local_data_[thread_index];
2628 if (tld.batch[SUPPLIER::S_COMMENT].kind() == Datum::NONE) {
2629 ARROW_ASSIGN_OR_RAISE(tld.batch[SUPPLIER::S_COMMENT],
2630 g_text.GenerateComments(tld.to_generate, 25, 100, tld.rng));
2631 ModifyComments(thread_index, "Recommends", good_rows_);
2632 ModifyComments(thread_index, "Complaints", bad_rows_);
2633 }
2634 return Status::OK();
2635 }
2636
2637 void ModifyComments(size_t thread_index, const char* review,
2638 const std::vector<int64_t>& indices) {

Callers

nothing calls this directly

Calls 4

GenerateCommentsMethod · 0.80
ARROW_ASSIGN_OR_RAISEFunction · 0.70
OKFunction · 0.50
kindMethod · 0.45

Tested by

no test coverage detected