acvictor commented on issue #8227:
URL: 
https://github.com/apache/incubator-gluten/issues/8227#issuecomment-2826393787

   @NEUpanning @zhztheplayer I now see that for this case the plan is
   
   ```
   == Physical Plan ==
   AdaptiveSparkPlan isFinalPlan=true
   +- == Final Plan ==
      VeloxColumnarToRow
      +- ^(2) HashAggregateTransformer(keys=[_groupingexpression#204], 
functions=[velox_collect_list(value#195)], isStreamingAgg=false)
         +- ^(2) ProjectExecTransformer [value#195, (1 - id#194) AS 
_groupingexpression#204]
            +- ^(2) InputIteratorTransformer[id#194, value#195]
               +- ShuffleQueryStage 1
                  +- ColumnarExchange SinglePartition, REPARTITION_BY_COL, 
[plan_id=958], [shuffle_writer_type=hash], [OUTPUT] List(id:IntegerType, 
value:StringType)
                     +- ^(1) ProjectExecTransformer [id#194, value#195]
                        +- ^(1) InputIteratorTransformer[id#194, value#195, 
_nondeterministic#201]
                           +- ShuffleQueryStage 0
                              +- ColumnarExchange SinglePartition, 
REPARTITION_BY_COL, [plan_id=836], [shuffle_writer_type=hash], [OUTPUT] 
List(id:IntegerType, value:StringType, _nondeterministic:DoubleType)
                                 +- RowToVeloxColumnar
                                    +- LocalTableScan [id#194, value#195, 
_nondeterministic#201]
   +- == Initial Plan ==
      SortAggregate(key=[_groupingexpression#204], 
functions=[velox_collect_list(value#195)])
      +- SortAggregate(key=[_groupingexpression#204], 
functions=[partial_velox_collect_list(value#195)])
         +- Sort [_groupingexpression#204 ASC NULLS FIRST], false, 0
            +- Project [value#195, (1 - id#194) AS _groupingexpression#204]
               +- Sort [id#194 ASC NULLS FIRST, value#195 ASC NULLS FIRST], 
false, 0
                  +- Exchange SinglePartition, REPARTITION_BY_COL, [plan_id=787]
                     +- Project [id#194, value#195]
                        +- Exchange SinglePartition, REPARTITION_BY_COL, 
[plan_id=785]
                           +- LocalTableScan [id#194, value#195, 
_nondeterministic#201]
   
   ```
   
   and the sorting from the initial plan is removed. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to