You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Ning Zhang (JIRA)" <ji...@apache.org> on 2011/03/01 22:36:36 UTC

[jira] Commented: (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:comment-tabpanel&focusedCommentId=13001129#comment-13001129 ] 

Ning Zhang commented on HIVE-2016:
----------------------------------

Currently CLI print out an error message to Session.err. Throwing exception may cause backward compatibility issue. Is this issue mostly related to usage thrown Hive thrift server? if so we need to figure out a way to pass Session.err from HiveServer to client side. 

> 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