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-7472) CLONE - Import fails for tables created with default text, sequence and orc file formats using HCatalog API
Date Fri, 01 Aug 2014 04:11:38 GMT

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

Hive QA commented on HIVE-7472:
-------------------------------



{color:red}Overall{color}: -1 at least one tests failed

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

{color:red}ERROR:{color} -1 due to 1 failed/errored test(s), 5845 tests executed
*Failed tests:*
{noformat}
org.apache.hadoop.hive.cli.TestMinimrCliDriver.testCliDriver_ql_rewrite_gbtoidx
{noformat}

Test results: http://ec2-174-129-184-35.compute-1.amazonaws.com/jenkins/job/PreCommit-HIVE-TRUNK-Build/130/testReport
Console output: http://ec2-174-129-184-35.compute-1.amazonaws.com/jenkins/job/PreCommit-HIVE-TRUNK-Build/130/console
Test logs: http://ec2-174-129-184-35.compute-1.amazonaws.com/logs/PreCommit-HIVE-TRUNK-Build-130/

Messages:
{noformat}
Executing org.apache.hive.ptest.execution.PrepPhase
Executing org.apache.hive.ptest.execution.ExecutionPhase
Executing org.apache.hive.ptest.execution.ReportingPhase
Tests exited with: TestsFailedException: 1 tests failed
{noformat}

This message is automatically generated.

ATTACHMENT ID: 12659054

> CLONE - Import fails for tables created with default text, sequence and orc file formats
using HCatalog API
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: HIVE-7472
>                 URL: https://issues.apache.org/jira/browse/HIVE-7472
>             Project: Hive
>          Issue Type: Bug
>          Components: HCatalog
>    Affects Versions: 0.14.0
>            Reporter: Sushanth Sowmyan
>            Assignee: Sushanth Sowmyan
>         Attachments: HIVE-7472.patch
>
>
> Cloning HIVE-5550 because HIVE-5550 fixed org.apache.hcatalog.*, and not org.apache.hive.hcatalog.*
. And that other package needs this change too. And with 0.14 pruning of org.apache.hcatalog.*,
we miss this patch altogether.
> ====
> 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.2#6252)

Mime
View raw message