Github user marmbrus commented on the pull request:
https://github.com/apache/spark/pull/10896#issuecomment-179386508
Okay, but that code doesn't actually produce an exchange right? Since its
captured by the cache?
```
== Optimized Logical Plan ==
Aggregate [col0#38918], [col0#38918,(sum(cast(col1#38919 as
bigint)),mode=Complete,isDistinct=false) AS
sum(col1)#38936L,(avg(cast(col2#38920 as
bigint)),mode=Complete,isDistinct=false) AS avg(col2)#38937]
+- InMemoryRelation [col0#38918,col1#38919,col2#38920], true, 10000,
StorageLevel(true, true, false, true, 1), Exchange
hashpartitioning(col0#38918,200), None, None
== Physical Plan ==
WholeStageCodegen
: +- TungstenAggregate(key=[col0#38918], functions=[(sum(cast(col1#38919
as bigint)),mode=Final,isDistinct=false),(avg(cast(col2#38920 as
bigint)),mode=Final,isDistinct=false)],
output=[col0#38918,sum(col1)#38936L,avg(col2)#38937])
: +- TungstenAggregate(key=[col0#38918],
functions=[(sum(cast(col1#38919 as
bigint)),mode=Partial,isDistinct=false),(avg(cast(col2#38920 as
bigint)),mode=Partial,isDistinct=false)],
output=[col0#38918,sum#38959L,sum#38960,count#38961L])
: +- INPUT
+- InMemoryColumnarTableScan [col0#38918,col1#38919,col2#38920],
InMemoryRelation [col0#38918,col1#38919,col2#38920], true, 10000,
StorageLevel(true, true, false, true, 1), Exchange
hashpartitioning(col0#38918,200), None, None
```
Eitherway, I'll let @yhuai sign off on this.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]