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

Optimizer on partition field

Log workAgile BoardRank to TopRank to BottomBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.8.0
    • None
    • None

    Description

      The optimizer doesn't use partition metadata, e.g.,

      select max(dt) from big_partitioned_table;

      Instead of just returning the biggest date in the table, it runs a full table scan. This kind of expression can also be useful in more interesting cases like:

      select count from big_partitioned_table a join (select max(dt) m from big_partitioned_table) b on a.dt=b.m;

      Attachments

        Issue Links

        Activity

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

          People

            Unassigned Unassigned Assign to me
            rbodkin Ron Bodkin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment