You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gluten.apache.org by "acvictor (via GitHub)" <gi...@apache.org> on 2025/04/24 05:04:15 UTC

Re: [I] [VL] Result mismatch in CollectList when 'sort by' clause is involved [incubator-gluten]

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: commits-unsubscribe@gluten.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For additional commands, e-mail: commits-help@gluten.apache.org