hadoop-hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Namit Jain (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HIVE-527) Inserting into a partitioned table without specifying the partition field should fail
Date Thu, 11 Jun 2009 17:13:07 GMT

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

Namit Jain commented on HIVE-527:
---------------------------------

The changes looks good, but I had a minor comment.

Instead of 

new SemanticException("need to specify partition columns because the destination table is
partitioned.");

add a new ErrorMsg and use that.

> Inserting into a partitioned table without specifying the partition field should fail
> -------------------------------------------------------------------------------------
>
>                 Key: HIVE-527
>                 URL: https://issues.apache.org/jira/browse/HIVE-527
>             Project: Hadoop Hive
>          Issue Type: Bug
>            Reporter: Zheng Shao
>         Attachments: hive-527-2009-06-11-2.patch
>
>
> The following piece of code should fail but it succeeded - and it deletes all existing
partitions of zshao_p.
> {code}
> CREATE TABLE zshao_p (a string) PARTITIONED BY (ds string);
> INSERT OVERWRITE table zshao_p SELECT 1 from zshao_tt;
> {code}
> It should output an error saying that the partition key/value pair is not specified.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message