You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Hive QA (JIRA)" <ji...@apache.org> on 2017/06/10 15:35:18 UTC

[jira] [Commented] (HIVE-16877) NPE when issue query like alter table ... cascade onto non-partitioned table

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

Hive QA commented on HIVE-16877:
--------------------------------



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

{color:red}ERROR:{color} -1 due to no test(s) being added or modified.

{color:red}ERROR:{color} -1 due to 7 failed/errored test(s), 10829 tests executed
*Failed tests:*
{noformat}
org.apache.hadoop.hive.cli.TestBeeLineDriver.testCliDriver[insert_overwrite_local_directory_1] (batchId=237)
org.apache.hadoop.hive.cli.TestMiniLlapCliDriver.testCliDriver[orc_ppd_basic] (batchId=140)
org.apache.hadoop.hive.cli.TestMiniLlapLocalCliDriver.testCliDriver[vector_if_expr] (batchId=145)
org.apache.hadoop.hive.cli.TestPerfCliDriver.testCliDriver[query14] (batchId=232)
org.apache.hadoop.hive.cli.TestPerfCliDriver.testCliDriver[query16] (batchId=232)
org.apache.hadoop.hive.cli.TestPerfCliDriver.testCliDriver[query23] (batchId=232)
org.apache.hadoop.hive.cli.TestPerfCliDriver.testCliDriver[query94] (batchId=232)
{noformat}

Test results: https://builds.apache.org/job/PreCommit-HIVE-Build/5617/testReport
Console output: https://builds.apache.org/job/PreCommit-HIVE-Build/5617/console
Test logs: http://104.198.109.242/logs/PreCommit-HIVE-Build-5617/

Messages:
{noformat}
Executing org.apache.hive.ptest.execution.TestCheckPhase
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: 7 tests failed
{noformat}

This message is automatically generated.

ATTACHMENT ID: 12872431 - PreCommit-HIVE-Build

> NPE when issue query like alter table ... cascade onto non-partitioned table 
> -----------------------------------------------------------------------------
>
>                 Key: HIVE-16877
>                 URL: https://issues.apache.org/jira/browse/HIVE-16877
>             Project: Hive
>          Issue Type: Bug
>          Components: Query Processor
>    Affects Versions: 1.2.1, 2.1.1
>            Reporter: Wang Haihua
>            Assignee: Wang Haihua
>             Fix For: 2.2.0
>
>         Attachments: HIVE-16877.1.patch
>
>
> After HIVE-8839 in 1.1.0 support "alter table ... cascade" to cascade table changes to partitions as well.  But NPE thrown when issue query like "alter table ... cascade" onto non-partitioned table 
> Sample Query:
> {code}
> create table test_cascade_npe (id int);
> alter table test_cascade_npe add columns (name string ) cascade;
> {code}
> Exception stack:
> {code}
> 2017-06-09T22:16:05,913 ERROR [main] ql.Driver: FAILED: NullPointerException null
> java.lang.NullPointerException
>     at org.apache.hadoop.hive.metastore.Warehouse.makePartName(Warehouse.java:547)
>     at org.apache.hadoop.hive.metastore.Warehouse.makePartName(Warehouse.java:489)
>     at org.apache.hadoop.hive.ql.metadata.Partition.getName(Partition.java:198)
>     at org.apache.hadoop.hive.ql.hooks.Entity.computeName(Entity.java:339)
>     at org.apache.hadoop.hive.ql.hooks.Entity.<init>(Entity.java:208)
>     at org.apache.hadoop.hive.ql.hooks.WriteEntity.<init>(WriteEntity.java:104)
>     at org.apache.hadoop.hive.ql.parse.DDLSemanticAnalyzer.addInputsOutputsAlterTable(DDLSemanticAnalyzer.java:1496)
>     at org.apache.hadoop.hive.ql.parse.DDLSemanticAnalyzer.addInputsOutputsAlterTable(DDLSemanticAnalyzer.java:1473)
>     at org.apache.hadoop.hive.ql.parse.DDLSemanticAnalyzer.analyzeAlterTableModifyCols(DDLSemanticAnalyzer.java:2685)
>     at org.apache.hadoop.hive.ql.parse.DDLSemanticAnalyzer.analyzeInternal(DDLSemanticAnalyzer.java:284)
>     at org.apache.hadoop.hive.ql.parse.BaseSemanticAnalyzer.analyze(BaseSemanticAnalyzer.java:250)
>     at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:474)
>     at org.apache.hadoop.hive.ql.Driver.compileInternal(Driver.java:1245)
>     at org.apache.hadoop.hive.ql.Driver.runInternal(Driver.java:1387)
>     at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1174)
>     at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1164)
>     at org.apache.hadoop.hive.cli.CliDriver.processLocalCmd(CliDriver.java:232)
>     at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:183)
>     at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:399)
>     at org.apache.hadoop.hive.cli.CliDriver.executeDriver(CliDriver.java:776)
>     at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:714)
>     at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:641)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)