MCPcopy Create free account
hub / github.com/bytedance/bolt / generateJoinKeyTypes

Method generateJoinKeyTypes

bolt/exec/tests/JoinFuzzer.cpp:239–247  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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) {

Callers

nothing calls this directly

Calls 3

reserveMethod · 0.45
push_backMethod · 0.45
randTypeMethod · 0.45

Tested by

no test coverage detected