v.24.2Performance Improvement

Optimize performance of sum/avg for bigint and big decimal types

Optimize performance of sum/avg conditionally for bigint and big decimal types by reducing branch miss. #59504 (李扬).