hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aniket Mokashi (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-2702) listPartitionsByFilter only supports non-string partitions
Date Sun, 18 Mar 2012 18:04:40 GMT

    [ https://issues.apache.org/jira/browse/HIVE-2702?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13232319#comment-13232319
] 

Aniket Mokashi commented on HIVE-2702:
--------------------------------------

I agree on your comment, I didn't catch it earlier. I wonder if there is an elegant workaround
for this. 
                
> 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
>            Assignee: 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

        

Mime
View raw message