ulysses-you commented on issue #27096: [SPARK-28148][SQL] Repartition after 
join is not optimized away
URL: https://github.com/apache/spark/pull/27096#issuecomment-573971965
 
 
   +1, how about add a rule named like `PruneShuffleAndSort`.
   At least include:
   
   1. 
   ```
   // TODO: remove this after we create a physical operator for 
`RepartitionByExpression`.
   case operator @ ShuffleExchangeExec(upper: HashPartitioning, child, _) =>
     child.outputPartitioning match {
       case lower: HashPartitioning if upper.semanticEquals(lower) => child
       case _ => operator
     }
   ```
   
   2. this pr code
   
   3. [PR-26946](https://github.com/apache/spark/pull/26946)

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

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

Reply via email to