alter partition should throw exception if the specified partition does not
exist.
----------------------------------------------------------------------------------
Key: HIVE-2016
URL: https://issues.apache.org/jira/browse/HIVE-2016
Project: Hive
Issue Type: Bug
Components: Metastore
Affects Versions: 0.8.0
Environment: Hadoop 0.20.1, hive-0.8.0-SNAPSHOT and SUSE Linux
Enterprise Server 10 SP2 (i586) - Kernel 2.6.16.60-0.21-smp (5).
Reporter: Chinna Rao Lalam
Assignee: Chinna Rao Lalam
To reproduce the issue follow the below steps
{noformat}
set hive.exec.drop.ignorenonexistent=false;
create table page_test(view INT, userid INT, page_url STRING) PARTITIONED
BY(dt STRING, country STRING) STORED AS A TEXTFILE;
LOAD DATA LOCAL INPATH '/home/test.txt' OVERWRITE INTO TABLE page_test
PARTITION(dt='10-10-2010',country='US');
LOAD DATA LOCAL INPATH '/home/test.txt' OVERWRITE INTO TABLE page_test
PARTITION(dt='10-12-2010',country='IN');
{noformat}
{noformat}
ALTER TABLE page_test DROP PARTITION (dt='23-02-2010',country='UK');
{noformat}
This query should throw exception because the requested partition doesn't exist
This issue related to HIVE-1535
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira