| 398 | } |
| 399 | |
| 400 | void ChunkedNodeGroup::addColumn(MemoryManager& mm, const TableAddColumnState& addColumnState, |
| 401 | bool enableCompression, PageAllocator* pageAllocator, ColumnStats* newColumnStats) { |
| 402 | auto& dataType = addColumnState.propertyDefinition.getType(); |
| 403 | chunks.push_back(std::make_unique<ColumnChunk>(mm, dataType.copy(), capacity, enableCompression, |
| 404 | ResidencyState::IN_MEMORY)); |
| 405 | auto numExistingRows = getNumRows(); |
| 406 | chunks.back()->populateWithDefaultVal(addColumnState.defaultEvaluator, numExistingRows, |
| 407 | newColumnStats); |
| 408 | if (residencyState == ResidencyState::ON_DISK) { |
| 409 | DASSERT(pageAllocator); |
| 410 | chunks.back()->flush(*pageAllocator); |
| 411 | } |
| 412 | } |
| 413 | |
| 414 | bool ChunkedNodeGroup::isDeleted(const Transaction* transaction, row_idx_t rowInChunk) const { |
| 415 | if (!versionInfo) { |
nothing calls this directly
no test coverage detected