| 203 | return status.ok() && success; |
| 204 | } |
| 205 | TupleRow* CreateTupleRow(int32_t val) { |
| 206 | uint8_t* tuple_row_mem = mem_pool_.Allocate(sizeof(int32_t*)); |
| 207 | Tuple* tuple_mem = Tuple::Create(sizeof(char) + sizeof(int32_t), &mem_pool_); |
| 208 | *reinterpret_cast<int32_t*>(tuple_mem->GetSlot(1)) = val; |
| 209 | tuple_mem->SetNotNull(NullIndicatorOffset(0, 1)); |
| 210 | TupleRow* row = reinterpret_cast<TupleRow*>(tuple_row_mem); |
| 211 | row->SetTuple(0, tuple_mem); |
| 212 | return row; |
| 213 | } |
| 214 | void CreateDataSet(int num_buckets, int unique_percent, int dup = 2) { |
| 215 | int u_idx = (num_buckets * unique_percent) / 100; |
| 216 | TupleRow* row; |
nothing calls this directly
no test coverage detected