Skip to content

Commit

Permalink
double-check for single HT
Browse files Browse the repository at this point in the history
  • Loading branch information
lnkuiper committed May 15, 2024
1 parent cfb97c9 commit 2b8f43b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/execution/radix_partitioned_hashtable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ void RadixPartitionedHashTable::Finalize(ClientContext &context, GlobalSinkState
gstate.count_before_combining = uncombined_data.Count();

// If true there is no need to combine, it was all done by a single thread in a single HT
const auto single_ht = !gstate.external && gstate.active_threads == 1;
const auto single_ht = !gstate.external && gstate.active_threads == 1 && gstate.number_of_threads == 1;

auto &uncombined_partition_data = uncombined_data.GetPartitions();
const auto n_partitions = uncombined_partition_data.size();
Expand Down

0 comments on commit 2b8f43b

Please sign in to comment.