[ 
https://issues.apache.org/jira/browse/HIVE-2702?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Phabricator updated HIVE-2702:
------------------------------

    Attachment: HIVE-2702.D2043.1.patch

aniket486 requested code review of "HIVE-2702 [jira] listPartitionsByFilter 
only supports non-string partitions".
Reviewers: JIRA

  https://issues.apache.org/jira/browse/HIVE-2702

  Added support for integer partitions in listPartitionByFilter method

  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");
        }

TEST PLAN
  EMPTY

REVISION DETAIL
  https://reviews.facebook.net/D2043

AFFECTED FILES
  metastore/src/test/org/apache/hadoop/hive/metastore/TestHiveMetaStore.java
  metastore/src/java/org/apache/hadoop/hive/metastore/parser/ExpressionTree.java

MANAGE HERALD DIFFERENTIAL RULES
  https://reviews.facebook.net/herald/view/differential/

WHY DID I GET THIS EMAIL?
  https://reviews.facebook.net/herald/transcript/4395/

Tip: use the X-Herald-Rules header to filter Herald messages in your client.

                
> listPartitionsByFilter only supports non-string partitions
> ----------------------------------------------------------
>
>                 Key: HIVE-2702
>                 URL: https://issues.apache.org/jira/browse/HIVE-2702
>             Project: Hive
>          Issue Type: Bug
>    Affects Versions: 0.8.1
>            Reporter: Aniket Mokashi
>         Attachments: HIVE-2702.1.patch, HIVE-2702.D2043.1.patch
>
>
> 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");
>       }

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to