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

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

Log workAgile BoardRank to TopRank to BottomBulk Copy AttachmentsBulk Move AttachmentsAdd voteVotersWatch issueWatchersCreate sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            rhbutani Harish Butani Assign to me
            rhbutani Harish Butani

            Dates

              Created:
              Updated:

              Slack

                Issue deployment