| 38 | ::arrow::BenchmarkMemoryTracker memory_tracker; |
| 39 | |
| 40 | static std::shared_ptr<BlockParser> BuildFromExamples( |
| 41 | const std::vector<std::string>& base_rows, int32_t num_rows) { |
| 42 | std::vector<std::string> rows; |
| 43 | for (int32_t i = 0; i < num_rows; ++i) { |
| 44 | rows.push_back(base_rows[i % base_rows.size()]); |
| 45 | } |
| 46 | |
| 47 | std::shared_ptr<BlockParser> result; |
| 48 | MakeCSVParser(rows, ParseOptions::Defaults(), -1, memory_tracker.memory_pool(), |
| 49 | &result); |
| 50 | return result; |
| 51 | } |
| 52 | |
| 53 | static std::shared_ptr<BlockParser> BuildInt64Data(int32_t num_rows) { |
| 54 | const std::vector<std::string> base_rows = {"123\n", "4\n", "-317005557\n", |
no test coverage detected