hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hive QA (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-5550) Import fails for tables created with default text, sequence and orc file formats using HCatalog API
Date Thu, 28 Nov 2013 08:33:36 GMT

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

Hive QA commented on HIVE-5550:
-------------------------------



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

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

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

Test results: http://bigtop01.cloudera.org:8080/job/PreCommit-HIVE-Build/481/testReport
Console output: http://bigtop01.cloudera.org:8080/job/PreCommit-HIVE-Build/481/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: 12616194

> Import fails for tables created with default text, sequence and orc file formats using
HCatalog API
> ---------------------------------------------------------------------------------------------------
>
>                 Key: HIVE-5550
>                 URL: https://issues.apache.org/jira/browse/HIVE-5550
>             Project: Hive
>          Issue Type: Bug
>          Components: HCatalog
>    Affects Versions: 0.11.0
>            Reporter: Venkatesh Seetharam
>            Assignee: Sushanth Sowmyan
>         Attachments: HIVE-5550.2.patch, HIVE-5550.3.patch, HIVE-5550.patch
>
>
> A table was created using HCatalog API with out specifying the file format, it defaults
to:
> {code}
> fileFormat=TextFile, inputformat=org.apache.hadoop.mapred.TextInputFormat, outputformat=org.apache.hadoop.hive.ql.io.IgnoreKeyTextOutputFormat
> {code}
> But, when hive fetches the table from the metastore, it strangely replaces the output
format with org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
> and the comparison between source and target table fails.
> The code in org.apache.hadoop.hive.ql.parse.ImportSemanticAnalyzer#checkTable does a
string comparison of classes and fails.
> {code}
>       // check IF/OF/Serde
>       String existingifc = table.getInputFormatClass().getName();
>       String importedifc = tableDesc.getInputFormat();
>       String existingofc = table.getOutputFormatClass().getName();
>       String importedofc = tableDesc.getOutputFormat();
>       if ((!existingifc.equals(importedifc))
>           || (!existingofc.equals(importedofc))) {
>         throw new SemanticException(
>             ErrorMsg.INCOMPATIBLE_SCHEMA
>                 .getMsg(" Table inputformat/outputformats do not match"));
>       }
> {code}
> This only affects tables with text and sequence file formats but not rc or orc.



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

Mime
View raw message