Hive
  1. Hive
  2. HIVE-2702

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

    Details

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

      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"); }
      1. HIVE-2702.1.patch
        5 kB
        Aniket Mokashi
      2. ASF.LICENSE.NOT.GRANTED--HIVE-2702.D2043.1.patch
        5 kB
        Phabricator
      3. HIVE-2702-v0.patch
        19 kB
        Sergey Shelukhin
      4. HIVE-2702.D11715.1.patch
        24 kB
        Phabricator
      5. HIVE-2702.D11715.2.patch
        27 kB
        Phabricator
      6. HIVE-2702.patch
        27 kB
        Sergey Shelukhin
      7. HIVE-2702.D11715.3.patch
        28 kB
        Phabricator
      8. HIVE-2702.D11847.1.patch
        26 kB
        Phabricator
      9. HIVE-2702.D11847.2.patch
        26 kB
        Phabricator

        Issue Links

          Activity

          No work has yet been logged on this issue.

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development