| 237 | // 1 in 10 times use empty build. |
| 238 | // TODO Use non-empty build with no matches sometimes. |
| 239 | if (vectorFuzzer_.coinToss(0.1)) { |
| 240 | return {BaseVector::create<RowVector>(rowType, 0, pool_.get())}; |
| 241 | } |
| 242 | |
| 243 | // TODO Remove the assumption that probeKeys are the first columns in |
| 244 | // probeInput. |
| 245 | |
| 246 | // To ensure there are some matches, sample with replacement 10% of probe join |
| 247 | // keys and use these as build keys. |
| 248 | // TODO Add a few random rows as well. |
| 249 | std::vector<RowVectorPtr> input; |
| 250 | for (const auto& probe : probeInput) { |