Description
Be consistent with RewriteJoin in #6093 to ensure that dovalidate and offload substrait plans are the same, add RewriteAggregate rule into RewriteSparkPlanRulesManager to convert SortAggregateExec and ObjectHashAggregateExec to HashAggregateExec, only need to process HashAggregateExec when offloading.
Description
Be consistent with
RewriteJoinin #6093 to ensure that dovalidate and offload substrait plans are the same, addRewriteAggregaterule intoRewriteSparkPlanRulesManagerto convertSortAggregateExecandObjectHashAggregateExectoHashAggregateExec, only need to process HashAggregateExec when offloading.