| 185 | } |
| 186 | |
| 187 | void PerColumnStats::Finalize() { |
| 188 | ndv_estimate = AggregateFunctions::HllFinalEstimate( |
| 189 | reinterpret_cast<const uint8_t*>(intermediate_ndv.data())); |
| 190 | avg_width = num_rows == 0 ? 0 : total_width / num_rows; |
| 191 | } |
| 192 | |
| 193 | TColumnStats PerColumnStats::ToTColumnStats() const { |
| 194 | TColumnStats col_stats; |