| 249 | } |
| 250 | |
| 251 | void Build(TestCtx* ctx, vector<TupleRow*>& bdata) { |
| 252 | HashTable* ht = ctx->hash_table_; |
| 253 | HashTableCtx* ht_ctx = ctx->hash_context_.get(); |
| 254 | for (int i = 0; i < bdata.size(); i++) { |
| 255 | TupleRow* row = bdata[i]; |
| 256 | if (!ht_ctx->EvalAndHashBuild(row)) continue; |
| 257 | BufferedTupleStream::FlatRowPtr dummy_flat_row = nullptr; |
| 258 | Status status; |
| 259 | bool success = ht->Insert(ht_ctx, dummy_flat_row, row, &status); |
| 260 | CHECK(status.ok() && success) << "Inserting a tuple in HashTable failed"; |
| 261 | } |
| 262 | } |
| 263 | |
| 264 | namespace build { |
| 265 | void SetUp(void* args) { |