v.21.6Performance Improvement
Fusion of Sum, Count, and Avg Functions in Query Optimization
Fusion of aggregate functionssum,countandavgin a query into single aggregate function. The optimization is controlled with theoptimize_fuse_sum_count_avgsetting. This is implemented with a new aggregate functionsumCount. This function returns a tuple of two fields:sumandcount. #21337 (hexiaoting).