You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by "wankunde (via GitHub)" <gi...@apache.org> on 2023/12/03 02:03:28 UTC

[PR] [SPARK-43228][SQL] Join keys also match PartitioningCollection in CoalesceBucketsInJoin [spark]

wankunde opened a new pull request, #44128:
URL: https://github.com/apache/spark/pull/44128

   
   ### What changes were proposed in this pull request?
   This PR updates `CoalesceBucketsInJoin.satisfiesOutputPartitioning` to support matching `PartitioningCollection`. A common case is that we add an alias on the join key. For example:
   
   ```sql
   SELECT *
   FROM   (SELECT /*+ BROADCAST(t3) */ t1.i AS t1i, t1.j AS t1j, t3.*
           FROM   t1 JOIN t3 ON t1.i = t3.i AND t1.j = t3.j) t
          JOIN t2 ON t.t1i = t2.i AND t.t1j = t2.j
   ```
   
   The left side outputPartitioning is:
   
   ```
   (hashpartitioning(t1i#41, t1j#42, 8) or hashpartitioning(i#46, t1j#42, 8) or hashpartitioning(t1i#41, j#47, 8) or hashpartitioning(i#46, j#47, 8))
   ```
   
   ### Why are the changes needed?
   Enhance `CoalesceBucketsInJoin` to support more cases.
   
   ### Does this PR introduce _any_ user-facing change?
   No.
   
   ### How was this patch tested?
   Unit test.
   
   
   


-- 
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: reviews-unsubscribe@spark.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


Re: [PR] [SPARK-43228][SQL] Join keys also match PartitioningCollection in CoalesceBucketsInJoin [spark]

Posted by "wangyum (via GitHub)" <gi...@apache.org>.
wangyum commented on PR #44128:
URL: https://github.com/apache/spark/pull/44128#issuecomment-1837343886

   Thanks. Merged to master.


-- 
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: reviews-unsubscribe@spark.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


Re: [PR] [SPARK-43228][SQL] Join keys also match PartitioningCollection in CoalesceBucketsInJoin [spark]

Posted by "wangyum (via GitHub)" <gi...@apache.org>.
wangyum closed pull request #44128: [SPARK-43228][SQL] Join keys also match PartitioningCollection in CoalesceBucketsInJoin
URL: https://github.com/apache/spark/pull/44128


-- 
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: reviews-unsubscribe@spark.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org