diff --git a/src/index/CompressedRelation.cpp b/src/index/CompressedRelation.cpp index 5b457249b0..7f8b1c0a55 100644 --- a/src/index/CompressedRelation.cpp +++ b/src/index/CompressedRelation.cpp @@ -367,13 +367,13 @@ void CompressedRelationReader::scan( ad_utility::AllocatorWithLimit allocator{ ad_utility::makeAllocationMemoryLeftThreadsafeObject( std::numeric_limits::max())}; - IdTable result(1, allocator); - result.resize(block.size()); + std::unique_ptr result = std::make_unique(1, allocator); + result->resize(block.size()); for (size_t i = 0; i < block.size(); ++i) { - result(i, 0) = block(i, 1); + (*result)(i, 0) = block(i, 1); } - return {std::make_unique(std::move(result)), rowIndexBegin, - rowIndexEnd, blockIndex, numInsAndDel}; + return {std::move(result), rowIndexBegin, rowIndexEnd, blockIndex, + numInsAndDel}; }; // The first and the last block might be incomplete. We process them