@@ -82,8 +82,8 @@ struct TAEq
8282 bool operator ()(const rowgroup::Row::Pointer&, const rowgroup::Row::Pointer&) const ;
8383};
8484// TODO: Generalize these and put them back in utils/common/hasher.h
85- using TNSDistinctMap_t = std::unordered_set<rowgroup::Row::Pointer, TAHasher, TAEq,
86- allocators::CountingAllocator <rowgroup::Row::Pointer> >;
85+ using TNSDistinctMap_t =
86+ std::unordered_set<rowgroup::Row::Pointer, TAHasher, TAEq, STLPoolAllocator <rowgroup::Row::Pointer> >;
8787}; // namespace
8888
8989inline uint64_t TAHasher::operator ()(const Row::Pointer& p) const
@@ -821,9 +821,8 @@ void TupleAnnexStep::finalizeParallelOrderByDistinct()
821821
822822 auto allocSorting = fRm ->getAllocator <ordering::OrderByRow>();
823823 ordering::SortingPQ finalPQ (rowgroup::rgCommonSize, allocSorting);
824- auto allocDistinct = fRm ->getAllocator <rowgroup::Row::Pointer>();
825824 std::unique_ptr<TNSDistinctMap_t> distinctMap (
826- new TNSDistinctMap_t (10 , TAHasher (this ), TAEq (this ), allocDistinct ));
825+ new TNSDistinctMap_t (10 , TAHasher (this ), TAEq (this ), STLPoolAllocator<rowgroup::Row::Pointer>( fRm ) ));
827826 fRowGroupIn .initRow (&row1);
828827 fRowGroupIn .initRow (&row2);
829828
0 commit comments