phoenix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eiichi Sato (JIRA)" <>
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
             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.

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;

java.lang.NullPointerException: at index 2
        at org.apache.phoenix.schema.PTableImpl.init(
        at org.apache.phoenix.schema.PTableImpl.<init>(
        at org.apache.phoenix.schema.PTableImpl.makePTable(
        at org.apache.phoenix.compile.UpsertCompiler.compile(
        at org.apache.phoenix.jdbc.PhoenixStatement$ExecutableUpsertStatement.compilePlan(
        at org.apache.phoenix.jdbc.PhoenixStatement$ExecutableUpsertStatement.compilePlan(
        at org.apache.phoenix.jdbc.PhoenixStatement$
        at org.apache.phoenix.jdbc.PhoenixStatement$
        at org.apache.phoenix.jdbc.PhoenixStatement.executeMutation(
        at org.apache.phoenix.jdbc.PhoenixStatement.execute(
        at sqlline.Commands.execute(
        at sqlline.Commands.sql(
        at sqlline.SqlLine.dispatch(
        at sqlline.SqlLine.begin(
        at sqlline.SqlLine.start(
        at sqlline.SqlLine.main(

This message was sent by Atlassian JIRA

View raw message