You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Hive QA (JIRA)" <ji...@apache.org> on 2013/12/03 04:59:36 UTC

[jira] [Commented] (HIVE-5686) partition column type validation doesn't quite work for dates

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

Hive QA commented on HIVE-5686:
-------------------------------



{color:green}Overall{color}: +1 all checks pass

Here are the results of testing the latest attachment:
https://issues.apache.org/jira/secure/attachment/12616676/HIVE-5686.04.patch

{color:green}SUCCESS:{color} +1 4450 tests passed

Test results: http://bigtop01.cloudera.org:8080/job/PreCommit-HIVE-Build/494/testReport
Console output: http://bigtop01.cloudera.org:8080/job/PreCommit-HIVE-Build/494/console

Messages:
{noformat}
Executing org.apache.hive.ptest.execution.PrepPhase
Executing org.apache.hive.ptest.execution.ExecutionPhase
Executing org.apache.hive.ptest.execution.ReportingPhase
{noformat}

This message is automatically generated.

ATTACHMENT ID: 12616676

> partition column type validation doesn't quite work for dates
> -------------------------------------------------------------
>
>                 Key: HIVE-5686
>                 URL: https://issues.apache.org/jira/browse/HIVE-5686
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Sergey Shelukhin
>            Assignee: Sergey Shelukhin
>         Attachments: HIVE-5686.01.patch, HIVE-5686.02.patch, HIVE-5686.03.patch, HIVE-5686.03.patch, HIVE-5686.03.patch, HIVE-5686.04.patch, HIVE-5686.patch
>
>
> Another interesting issue...
> {noformat}
> hive> create table zzzzz(c string) partitioned by (i date,j date);
> OK
> Time taken: 0.099 seconds
> hive> alter table zzzzz add partition (i='2012-01-01', j='foo');          
> FAILED: SemanticException [Error 10248]: Cannot add partition column j of type string as it cannot be converted to type date
> hive> alter table zzzzz add partition (i='2012-01-01', j=date 'foo');
> OK
> Time taken: 0.119 seconds
> {noformat}
> The fake date is caught in normal queries:
> {noformat}
> hive> select * from zzzzz where j == date 'foo';
> FAILED: SemanticException Unable to convert date literal string to date value.
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.1#6144)