[ https://issues.apache.org/jira/browse/HIVE-3309?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13424877#comment-13424877 ]
rohithsharma commented on HIVE-3309: ------------------------------------ If the query contains partition column of type only string , then non-equality operator throw exception. Example : 1. create table ptestfilter (a string, b int) partitioned by (c string, d int); 2. alter table ptestfilter add partition (c='1', d=1); 3. alter table ptestfilter drop partition (c<'2'); In above example, line-3 throws exception. But expected is query should drop partition columns which are less then 2. > drop partition doesnot work for mixture of string and non-string columns for > non-equality operatior > --------------------------------------------------------------------------------------------------- > > Key: HIVE-3309 > URL: https://issues.apache.org/jira/browse/HIVE-3309 > Project: Hive > Issue Type: Bug > Components: Metastore, Query Processor > Affects Versions: 0.9.1 > Environment: SuSE 11 SP 1 > Hadoop Cluster + Hive > Reporter: rohithsharma > Priority: Minor > > There is still problem in "drop partition" columns if the partition columns > are mixture of string and non-string. > There is behavioural change after fixing HIVE-3063. > Before fix > ========== > create table ptestfilter (a string, b int) partitioned by (c string, d int); > alter table ptestfilter add partition (c='1', d=2); > alter table ptestFilter add partition (c='2', d=1); > alter table ptestfilter drop partition (c<'2'); //this will execute fine > After fix > ========== > create table ptestfilter (a string, b int) partitioned by (c string, d int); > alter table ptestfilter add partition (c='1', d=2); > alter table ptestFilter add partition (c='2', d=1); > alter table ptestfilter drop partition (c<'2'); //this will fail to execute. -- 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