Github user dilipbiswal commented on the issue:

    https://github.com/apache/spark/pull/17679
  
    @viirya Thank you for a quick fix. The change looks good to me. I have a 
question. Before the fix, we changed the output partitioning of relation's 
child. But how come it was not reflected on the plan ? If it was reflected on 
the plan then we could quickly figure out whats wrong ? Here is the plan before 
this fix.
    ```
    *HashAggregate(keys=[item#245], functions=[count(1)], output=[item#245, 
count#279L])
    +- *HashAggregate(keys=[item#245], functions=[partial_count(1)], 
output=[item#245, count#295L])
       +- InMemoryTableScan [item#245]
             +- InMemoryRelation [id#237, item#245], true, 10000, 
StorageLevel(disk, memory, deserialized, 1 replicas)
                   +- *HashAggregate(keys=[id#237, item#245], functions=[], 
output=[id#237, item#245])
                      +- Exchange hashpartitioning(id#237, item#245, 200)
                         +- *HashAggregate(keys=[id#237, item#245], 
functions=[], output=[id#237, item#245])
                            +- *Project [id#237, group#227 AS item#245]
                               +- *BroadcastHashJoin [item#226], [item#236], 
Inner, BuildRight
                                  :- *Project [_1#223 AS item#226, _2#224 AS 
group#227]
                                  :  +- *Filter isnotnull(_1#223)
                                  :     +- LocalTableScan [_1#223, _2#224]
                                  +- BroadcastExchange 
HashedRelationBroadcastMode(List(input[0, string, true]))
                                     +- *Project [_1#233 AS item#236, _2#234 AS 
id#237]
                                        +- *Filter isnotnull(_1#233)
                                           +- LocalTableScan [_1#233, _2#234]
    ```
    Is there any indication on the plan that partitioning info got changed ? 
Just want to learn :-)


---
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]

Reply via email to