Details
-
Bug
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
Impala 3.1.0
-
None
-
None
-
ghx-label-7
Description
Consider PlannerTest.testTpcds() with the TPCDS-Q47 query. Peruse the plan. Notice the following:
33:HASH JOIN [INNER JOIN] | hash predicates: rank() + 1 = rank(), s_store_name = s_store_name, i_category = i_category, s_company_name = s_company_name, i_brand = i_brand
What does rank() + 1 = rank() mean? Is it always false? What about s_store_name = s_store_name, is that always true?
Probably this means tx.s_store_name = ty.s_store_name for some tables tx and ty. Expected the predicate to make that clear so I don't have to guess. Especially for that rank() + 1 = rank() expression, which table's rank() are we comparing to which other table's rank() + 1?