@@ -609,16 +609,16 @@ auto nuv_query_heap_finite_ram(
609609 _i.start ();
610610
611611 size_t parts_per_thread =
612- (size (active_partitions ) + nthreads - 1 ) / nthreads;
612+ (shuffled_db. num_col_parts ( ) + nthreads - 1 ) / nthreads;
613613
614614 std::vector<std::future<void >> futs;
615615 futs.reserve (nthreads);
616616
617617 for (size_t n = 0 ; n < nthreads; ++n) {
618618 auto first_part =
619- std::min<size_t >(n * parts_per_thread, size (active_partitions ));
619+ std::min<size_t >(n * parts_per_thread, shuffled_db. num_col_parts ( ));
620620 auto last_part =
621- std::min<size_t >((n + 1 ) * parts_per_thread, size (active_partitions ));
621+ std::min<size_t >((n + 1 ) * parts_per_thread, shuffled_db. num_col_parts ( ));
622622
623623 if (first_part != last_part) {
624624 futs.emplace_back (std::async (
@@ -794,16 +794,16 @@ auto qv_query_heap_finite_ram(
794794
795795 // size_t block_size = (size(active_partitions) + nthreads - 1) / nthreads;
796796 size_t parts_per_thread =
797- (size (active_partitions ) + nthreads - 1 ) / nthreads;
797+ (shuffled_db. num_col_parts ( ) + nthreads - 1 ) / nthreads;
798798
799799 std::vector<std::future<void >> futs;
800800 futs.reserve (nthreads);
801801
802802 for (size_t n = 0 ; n < nthreads; ++n) {
803803 auto first_part =
804- std::min<size_t >(n * parts_per_thread, size (active_partitions ));
804+ std::min<size_t >(n * parts_per_thread, shuffled_db. num_col_parts ( ));
805805 auto last_part =
806- std::min<size_t >((n + 1 ) * parts_per_thread, size (active_partitions ));
806+ std::min<size_t >((n + 1 ) * parts_per_thread, shuffled_db. num_col_parts ( ));
807807
808808 if (first_part != last_part) {
809809 futs.emplace_back (
0 commit comments