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

Enhance listPartitionsByFilter to add support for integral types both for equality and non-equality

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.8.1
    • Fix Version/s: 0.12.0
    • Component/s: None
    • Labels:

      Description

      listPartitionsByFilter supports only non-string partitions. This is because its explicitly specified in generateJDOFilterOverPartitions in ExpressionTree.java.

      //Can only support partitions whose types are string
      if( ! table.getPartitionKeys().get(partitionColumnIndex).
      getType().equals(org.apache.hadoop.hive.serde.Constants.STRING_TYPE_NAME) )

      { throw new MetaException ("Filtering is supported only on partition keys of type string"); }

        Attachments

        1. HIVE-2702-v0.patch
          19 kB
          Sergey Shelukhin
        2. HIVE-2702.patch
          27 kB
          Sergey Shelukhin
        3. HIVE-2702.D11847.2.patch
          26 kB
          Phabricator
        4. HIVE-2702.D11847.1.patch
          26 kB
          Phabricator
        5. HIVE-2702.D11715.3.patch
          28 kB
          Phabricator
        6. HIVE-2702.D11715.2.patch
          27 kB
          Phabricator
        7. HIVE-2702.D11715.1.patch
          24 kB
          Phabricator
        8. HIVE-2702.1.patch
          5 kB
          Aniket Mokashi
        9. ASF.LICENSE.NOT.GRANTED--HIVE-2702.D2043.1.patch
          5 kB
          Phabricator

          Issue Links

            Activity

              People

              • Assignee:
                sershe Sergey Shelukhin
                Reporter:
                aniket486 Aniket Mokashi
              • Votes:
                0 Vote for this issue
                Watchers:
                11 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: