Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-2048 Expedite Partition Pruning
  3. HIVE-2049

Push down partition pruning to JDO filtering for a subset of partition predicates

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.8.0
    • Component/s: Metastore
    • Hadoop Flags:
      Reviewed

      Description

      Several tasks:

      • expose HiveMetaStoreClient.listPartitionsByFilter() to Hive.java so that PartitionPruner can use that for certain partition predicates.
      • figure out a safe subset of partition predicates that can be pushed down to JDO filtering.

      By my initial testing for the 2nd part is equality queries with AND/OR can be pushed down and return correct results. However range queries on partition columns gave NPE by the JDO execute() function. This might be a bug in the JDO query string itself, but we need to figure it out and heavily test all cases.

      1. HIVE-2049.patch
        17 kB
        Ning Zhang
      2. HIVE-2049.4.patch
        71 kB
        Ning Zhang
      3. HIVE-2049.3.patch
        67 kB
        Ning Zhang
      4. HIVE-2049.2.patch
        16 kB
        Ning Zhang

        Issue Links

          Activity

          Hide
          namit Namit Jain added a comment -

          Committed. Thanks Ning

          Show
          namit Namit Jain added a comment - Committed. Thanks Ning
          Hide
          namit Namit Jain added a comment -

          +1

          Show
          namit Namit Jain added a comment - +1
          Hide
          nzhang Ning Zhang added a comment -

          Attaching a new patch that address review comments. The review board is also updated.

          Show
          nzhang Ning Zhang added a comment - Attaching a new patch that address review comments. The review board is also updated.
          Hide
          namit Namit Jain added a comment -

          Added comments in the review board

          Show
          namit Namit Jain added a comment - Added comments in the review board
          Hide
          nzhang Ning Zhang added a comment -

          Uploading HIVE-2049.3.patch. This one passed all unit tests. I've also update the review board.

          Show
          nzhang Ning Zhang added a comment - Uploading HIVE-2049 .3.patch. This one passed all unit tests. I've also update the review board.
          Hide
          nzhang Ning Zhang added a comment -

          This are diffs in the unit tests. I'll working on it.

          Show
          nzhang Ning Zhang added a comment - This are diffs in the unit tests. I'll working on it.
          Hide
          nzhang Ning Zhang added a comment -

          Uploading a new patch that resolved a conflict with a recent commit.

          The review request: https://reviews.apache.org/r/489/

          Show
          nzhang Ning Zhang added a comment - Uploading a new patch that resolved a conflict with a recent commit. The review request: https://reviews.apache.org/r/489/
          Hide
          nzhang Ning Zhang added a comment -

          This patch only allows partition predicates to be

          {=, AND, OR}

          . Still running tests.

          Show
          nzhang Ning Zhang added a comment - This patch only allows partition predicates to be {=, AND, OR} . Still running tests.

            People

            • Assignee:
              nzhang Ning Zhang
              Reporter:
              nzhang Ning Zhang
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development