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:

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

        Issue Links

          Activity

          Aniket Mokashi created issue -
          Aniket Mokashi made changes -
          Field Original Value New Value
          Link This issue relates to HCATALOG-23 [ HCATALOG-23 ]
          Aniket Mokashi made changes -
          Attachment HIVE-2702.1.patch [ 12516808 ]
          Aniket Mokashi made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Phabricator made changes -
          Attachment HIVE-2702.D2043.1.patch [ 12516813 ]
          Carl Steinbach made changes -
          Assignee Aniket Mokashi [ aniket486 ]
          Ashutosh Chauhan made changes -
          Status Patch Available [ 10002 ] Open [ 1 ]
          Thomas Weise made changes -
          Link This issue relates to HCATALOG-347 [ HCATALOG-347 ]
          Thomas Weise made changes -
          Summary listPartitionsByFilter only supports non-string partitions listPartitionsByFilter only supports string partitions
          Sergey Shelukhin made changes -
          Link This issue is related to HBASE-2048 [ HBASE-2048 ]
          Sergey Shelukhin made changes -
          Attachment HIVE-2702-v0.patch [ 12592462 ]
          Sergey Shelukhin made changes -
          Assignee Aniket Mokashi [ aniket486 ] Sergey Shelukhin [ sershe ]
          Sergey Shelukhin made changes -
          Link This issue is related to HBASE-2048 [ HBASE-2048 ]
          Sergey Shelukhin made changes -
          Link This issue is related to HIVE-2048 [ HIVE-2048 ]
          Phabricator made changes -
          Attachment HIVE-2702.D11715.1.patch [ 12592662 ]
          Sergey Shelukhin made changes -
          Fix Version/s 0.12.0 [ 12324312 ]
          Sergey Shelukhin made changes -
          Link This issue is blocked by HIVE-2084 [ HIVE-2084 ]
          Sergey Shelukhin made changes -
          Link This issue is blocked by HIVE-2703 [ HIVE-2703 ]
          Sergey Shelukhin made changes -
          Summary listPartitionsByFilter only supports string partitions listPartitionsByFilter only supports string partitions for equals
          Sergey Shelukhin made changes -
          Link This issue relates to HIVE-4888 [ HIVE-4888 ]
          Phabricator made changes -
          Attachment HIVE-2702.D11715.2.patch [ 12593238 ]
          Sergey Shelukhin made changes -
          Link This issue is blocked by HIVE-2703 [ HIVE-2703 ]
          Sergey Shelukhin made changes -
          Link This issue is blocked by HIVE-2084 [ HIVE-2084 ]
          Sergey Shelukhin made changes -
          Attachment HIVE-2702.patch [ 12593587 ]
          Phabricator made changes -
          Attachment HIVE-2702.D11715.3.patch [ 12593633 ]
          Sergey Shelukhin made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Sergey Shelukhin made changes -
          Status Patch Available [ 10002 ] Open [ 1 ]
          Sergey Shelukhin made changes -
          Link This issue is blocked by HIVE-4929 [ HIVE-4929 ]
          Phabricator made changes -
          Attachment HIVE-2702.D11847.1.patch [ 12594446 ]
          Phabricator made changes -
          Attachment HIVE-2702.D11847.2.patch [ 12594819 ]
          Ashutosh Chauhan made changes -
          Summary listPartitionsByFilter only supports string partitions for equals Enhance listPartitionsByFilter to add support for integral types both for equality and non-equality
          Ashutosh Chauhan made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Ashutosh Chauhan made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Harsh J made changes -
          Link This issue is duplicated by HIVE-7164 [ HIVE-7164 ]
          Lefty Leverenz made changes -
          Labels TODOC12

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development