Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-5555

Support alternate join syntax: joining conditions in where clause; also pushdown qualifying join conditions

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • Query Processor
    • None

    Description

      Certain tools still generate `old style' Join queries where the join
      condition is in the Where clause. A related set of issues that can
      be addressed is that of pushing forward joining conditions;
      in a manner similar to the Predicate Pushdown feature of Hive.

      For e.g. these queries can have join conditions pushed down:

      - query 1, push join predicate from 2nd join to 1st
      explain select *
      from part p1 join part p2 join part p3 on p1.p_name = p2.p_name and p2.p_name = p3.p_name;
      
      - query 2
      explain select *
      from part p1 join part p2 join part p3 
      where p1.p_name = p2.p_name and p2.p_name = p3.p_name;
      

      Attachments

        1. AlternativeJoinSyntax.pdf
          177 kB
          Harish Butani

        Issue Links

          Activity

            People

              rhbutani Harish Butani
              rhbutani Harish Butani
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated: