| 196 | } |
| 197 | |
| 198 | Result<RowTableImpl> RepeatRowTableUntil(const RowTableImpl& seed, int64_t num_rows) { |
| 199 | RowTableImpl row_table; |
| 200 | |
| 201 | RETURN_NOT_OK(row_table.Init(default_memory_pool(), seed.metadata())); |
| 202 | // Append the seed row table repeatedly to grow the row table to big enough. |
| 203 | while (row_table.length() < num_rows) { |
| 204 | RETURN_NOT_OK(row_table.AppendSelectionFrom(seed, |
| 205 | static_cast<uint32_t>(seed.length()), |
| 206 | /*source_row_ids=*/NULLPTR)); |
| 207 | } |
| 208 | |
| 209 | return row_table; |
| 210 | } |
| 211 | |
| 212 | void AssertCompareColumnsToRowsAllMatch(const std::vector<KeyColumnArray>& columns, |
| 213 | const RowTableImpl& row_table, |
nothing calls this directly
no test coverage detected