主权项 |
1. A method of facilitating a multiple join operation in a processing system that includes a plurality of processing modules, wherein the join operation comprises a join on a column of a first table, a column of a second table, and a column of a third table, the method comprising:
distributing a respective set of rows of the first, second and third tables to each of the plurality of processing modules; redistributing by each of the plurality of processing modules to at least another one of the plurality of processing modules: (i) each row of the respective set of rows of the first table that has a value of the column of the first table that does not match any one of skewed values of the column of the first table, (ii) each row of the respective set of rows of the second table that has a value of the column of the second table that does not match any of the skewed values of the column of the first table and (iii) one or more rows of the distributed respective set of rows of the third table involved in the join operation; locally maintaining, by a first processing module of the plurality of processing modules, one or more of the distributed respective set of rows that each has a value of the column of the first table that matches one of the skewed values; duplicating, by a second processing module of the plurality of processing modules, one or more of the distributed respective set of rows that each has a value of the column of the second table that matches one of the skewed values; and processing, by the first processing module of the plurality of processing modules, any row of the respective set of rows that has a value of the column of the first table that matches any of the skewed values. |