You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Chinna Rao Lalam (JIRA)" <ji...@apache.org> on 2014/04/07 20:59:16 UTC
[jira] [Resolved] (HIVE-2016) alter partition should throw
exception if the specified partition does not exist.
[ https://issues.apache.org/jira/browse/HIVE-2016?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Chinna Rao Lalam resolved HIVE-2016.
------------------------------------
Resolution: Implemented
In trunk It is implemented
> 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 was sent by Atlassian JIRA
(v6.2#6252)