| 516 | } |
| 517 | |
| 518 | void ColumnChunkData::populateWithDefaultVal(ExpressionEvaluator& defaultEvaluator, |
| 519 | uint64_t& numValues_, ColumnStats* newColumnStats) { |
| 520 | auto numValuesAppended = 0u; |
| 521 | const auto numValuesToPopulate = numValues_; |
| 522 | while (numValuesAppended < numValuesToPopulate) { |
| 523 | const auto numValuesToAppend = |
| 524 | std::min(DEFAULT_VECTOR_CAPACITY, numValuesToPopulate - numValuesAppended); |
| 525 | defaultEvaluator.evaluate(numValuesToAppend); |
| 526 | auto resultVector = defaultEvaluator.resultVector.get(); |
| 527 | DASSERT(resultVector->state->getSelVector().getSelSize() == numValuesToAppend); |
| 528 | append(resultVector, resultVector->state->getSelVector()); |
| 529 | if (newColumnStats) { |
| 530 | newColumnStats->update(resultVector); |
| 531 | } |
| 532 | numValuesAppended += numValuesToAppend; |
| 533 | } |
| 534 | } |
| 535 | |
| 536 | void ColumnChunkData::copyVectorToBuffer(ValueVector* vector, offset_t startPosInChunk, |
| 537 | const SelectionView& selView) { |
no test coverage detected