v.23.2Performance Improvement

Rewrite Aggregate Functions Using if Expressions for Performance Improvement

Rewrite aggregate functions with if expression as argument when logically equivalent. For example, avg(if(cond, col, null)) can be rewritten to avgIf(cond, col). It is helpful in performance. #44730 (李扬).