sharmabhaskar edited a comment on issue #13231: [SPARK-15453] [SQL] Sort Merge 
Join to use bucketing metadata to optimize query plan
   @tejasapatil I am facing the same issue while joining to bucketed tables . I 
am using spark 2,2 in mapR distribution:
   I have two tables :
   table A : bucketed on key_column ( 20 buckets )
   table B : portioned on year and bucketed on key_columns( 20 buckets )
   But while joining both the tables on key_columns the query is doing both 
sort and exchange:
             +- *Project
                +- *SortMergeJoin [key_column#1079], [key_column#1218],Inner
   sort step:                :- *Sort [key_column#1079 ASC NULLS FIRST], false, 0
   exchange step:            :  +- Exchange hashpartitioning(key_column#1079, 
                   :     +- *Filter isnotnull(key_column#1079)

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:

With regards,
Apache Git Services

To unsubscribe, e-mail:
For additional commands, e-mail:

Reply via email to