phoenix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (PHOENIX-3800) NPE when doing UPSERT SELECT into salted tables
Date Fri, 05 May 2017 12:00:06 GMT

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

Hudson commented on PHOENIX-3800:
---------------------------------

FAILURE: Integrated in Jenkins build Phoenix-master #1604 (See [https://builds.apache.org/job/Phoenix-master/1604/])
PHOENIX-3800 NPE when doing UPSERT SELECT into salted tables (ankitsinghal59: rev f51c0db9f2d2ee261e602a114d47dd63353bbba8)
* (edit) phoenix-core/src/main/java/org/apache/phoenix/compile/UpsertCompiler.java
* (edit) phoenix-core/src/it/java/org/apache/phoenix/end2end/UpsertSelectIT.java


> NPE when doing UPSERT SELECT into salted tables
> -----------------------------------------------
>
>                 Key: PHOENIX-3800
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-3800
>             Project: Phoenix
>          Issue Type: Bug
>    Affects Versions: 4.10.0
>            Reporter: Eiichi Sato
>            Assignee: Eiichi Sato
>             Fix For: 4.11.0, 4.10.1
>
>         Attachments: PHOENIX-3800.patch
>
>
> We run into NPE when doing UPSERT SELECT into salted tables, client and server both running
4.10.0 release. Here is a minimal reproducer and the stack trace on the client side.
> {code}
> create table test (id varchar not null primary key, a integer, b integer) salt_buckets
= 2;
> upsert into test (id, b) select id, 1 from test;
> {code}
> {code}
> java.lang.NullPointerException: at index 2
>         at com.google.common.collect.ObjectArrays.checkElementNotNull(ObjectArrays.java:191)
>         at com.google.common.collect.ImmutableList.construct(ImmutableList.java:320)
>         at com.google.common.collect.ImmutableList.copyOf(ImmutableList.java:290)
>         at org.apache.phoenix.schema.PTableImpl.init(PTableImpl.java:534)
>         at org.apache.phoenix.schema.PTableImpl.<init>(PTableImpl.java:408)
>         at org.apache.phoenix.schema.PTableImpl.makePTable(PTableImpl.java:297)
>         at org.apache.phoenix.compile.UpsertCompiler.compile(UpsertCompiler.java:684)
>         at org.apache.phoenix.jdbc.PhoenixStatement$ExecutableUpsertStatement.compilePlan(PhoenixStatement.java:611)
>         at org.apache.phoenix.jdbc.PhoenixStatement$ExecutableUpsertStatement.compilePlan(PhoenixStatement.java:597)
>         at org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:351)
>         at org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:341)
>         at org.apache.phoenix.call.CallRunner.run(CallRunner.java:53)
>         at org.apache.phoenix.jdbc.PhoenixStatement.executeMutation(PhoenixStatement.java:339)
>         at org.apache.phoenix.jdbc.PhoenixStatement.execute(PhoenixStatement.java:1511)
>         at sqlline.Commands.execute(Commands.java:822)
>         at sqlline.Commands.sql(Commands.java:732)
>         at sqlline.SqlLine.dispatch(SqlLine.java:813)
>         at sqlline.SqlLine.begin(SqlLine.java:686)
>         at sqlline.SqlLine.start(SqlLine.java:398)
>         at sqlline.SqlLine.main(SqlLine.java:291)
> {code}



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

Mime
View raw message