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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.8.1
    • 0.12.0
    • 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"); }

      Attachments

        1. ASF.LICENSE.NOT.GRANTED--HIVE-2702.D2043.1.patch
          5 kB
          Phabricator
        2. HIVE-2702.1.patch
          5 kB
          Aniket Namadeo 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

            People

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

              Dates

                Created:
                Updated:
                Resolved: