| 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) { |
nothing calls this directly
no test coverage detected