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

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

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Query Processor
    • Labels:
      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

          Issue Links

            Activity

              People

              • Assignee:
                rhbutani Harish Butani
                Reporter:
                rhbutani Harish Butani
              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated: