[ https://issues.apache.org/jira/browse/HIVE-5685?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13822802#comment-13822802 ]
Hive QA commented on HIVE-5685: ------------------------------- {color:green}Overall{color}: +1 all checks pass Here are the results of testing the latest attachment: https://issues.apache.org/jira/secure/attachment/12613692/HIVE-5685.5.patch {color:green}SUCCESS:{color} +1 4612 tests passed Test results: http://bigtop01.cloudera.org:8080/job/PreCommit-HIVE-Build/279/testReport Console output: http://bigtop01.cloudera.org:8080/job/PreCommit-HIVE-Build/279/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: 12613692 > partition column type validation doesn't work in some cases > ----------------------------------------------------------- > > Key: HIVE-5685 > URL: https://issues.apache.org/jira/browse/HIVE-5685 > Project: Hive > Issue Type: Bug > Reporter: Sergey Shelukhin > Assignee: Vikram Dixit K > Attachments: HIVE-5685.1.patch, HIVE-5685.2.patch, HIVE-5685.3.patch, > HIVE-5685.4.patch, HIVE-5685.5.patch > > > It seems like it works if there's more than one partition column, and doesn't > work if there's just one. At least that's the case that I found. The > situation for different types is the same. > {noformat} > hive> create table zzz(c string) partitioned by (i int); > OK > Time taken: 0.41 seconds > hive> alter table zzz add partition (i='foo'); > OK > Time taken: 0.185 seconds > hive> create table zzzz(c string) partitioned by (i int,j int); > OK > Time taken: 0.085 seconds > hive> alter table zzzz add partition (i='foo',j=5); > FAILED: SemanticException [Error 10248]: Cannot add partition column i of > type string as it cannot be converted to type int > hive> alter table zzzz add partition (i=5,j='foo'); > FAILED: SemanticException [Error 10248]: Cannot add partition column j of > type string as it cannot be converted to type int > {noformat} -- This message was sent by Atlassian JIRA (v6.1#6144)