162826 {
162827 if (!op.distinct_data) {
162828 return;
162829 }
162830 auto &data = *op.distinct_data;
162831 auto &
state = *gstate.distinct_state;
162832 D_ASSERT(!data.radix_tables.empty());
162833
162834 const idx_t aggregate_count =
state.radix_states.size();
162836
162837 auto &distinct_info = *op.distinct_collection_info;
162838
162839 for (auto &idx : distinct_info.indices) {
162840 idx_t table_idx = distinct_info.table_map[idx];
162841 if (data.radix_tables[table_idx] == nullptr) {
162842
162843 continue;
162844 }
162845 auto &radix_table = *data.radix_tables[table_idx];
162846 radix_states[table_idx] = radix_table.GetLocalSinkState(context);
162847 }
162848 }
vector< unique_ptr< LocalSinkState > > radix_states
The local sink states of the distinct aggregates hash tables.
Definition duckdb.cpp:162822
uint64_t idx_t
a saner size_t for loop indices etc
Definition duckdb.hpp:237