lgbo-ustc commented on issue #7778:
URL:
https://github.com/apache/incubator-gluten/issues/7778#issuecomment-2451571507
Original spark plan
```sql
0: jdbc:hive2://localhost:10000> explain select n_regionkey,
avg(n_nationkey) from tpch_pq.nation group by n_regionkey;
+----------------------------------------------------+
| plan |
+----------------------------------------------------+
| == Physical Plan ==
CHNativeColumnarToRow
+- ^(4) HashAggregateTransformer(keys=[n_regionkey#2L],
functions=[avg(cast(n_nationkey#0L as double))], isStreamingAgg=false)
+- ^(4) InputIteratorTransformer[n_regionkey#2L, sum#32, count#33L]
+- ColumnarExchange hashpartitioning(n_regionkey#2L, 5),
ENSURE_REQUIREMENTS, [plan_id=214], [shuffle_writer_type=hash], [OUTPUT]
ArrayBuffer(n_regionkey:LongType, sum:DoubleType, count:LongType)
+- ^(3) HashAggregateTransformer(keys=[n_regionkey#2L],
functions=[partial_avg(_pre_1#34)], isStreamingAgg=false)
+- ^(3) ProjectExecTransformer [n_nationkey#0L, n_regionkey#2L,
cast(n_nationkey#0L as double) AS _pre_1#34]
+- ^(3) NativeFileScan parquet
tpch_pq.nation[n_nationkey#0L,n_regionkey#2L] Batched: true, DataFilters: [],
Format: Parquet, Location: InMemoryFileIndex(1
paths)[file:/home/liangjiabiao/workspace/docker/local_gluten/tpch_pq_data/nat...,
PartitionFilters: [], PushedFilters: [], ReadSchema:
struct<n_nationkey:bigint,n_regionkey:bigint>
```
--
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]