generalize the hasAverage function to "mayNeedAvgPushdown". In the future, we can add a quick proxy tests for "all replicated tables" or "definitely an SP plan".