phoenix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eiichi Sato (JIRA)" <j...@apache.org>
Subject [jira] [Created] (PHOENIX-3800) NPE when doing UPSERT SELECT into salted tables
Date Thu, 20 Apr 2017 15:59:10 GMT
Eiichi Sato created PHOENIX-3800:
------------------------------------

             Summary: 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


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