phoenix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "daniel meng (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (PHOENIX-1305) create index throws NPE when dataTable has specified default column family
Date Tue, 30 Sep 2014 11:48:33 GMT

     [ https://issues.apache.org/jira/browse/PHOENIX-1305?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

daniel meng updated PHOENIX-1305:
---------------------------------
    Attachment: PHOENIX-1305.patch

> create index throws NPE when dataTable has specified default column family
> --------------------------------------------------------------------------
>
>                 Key: PHOENIX-1305
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-1305
>             Project: Phoenix
>          Issue Type: Bug
>            Reporter: daniel meng
>         Attachments: PHOENIX-1305.patch
>
>
> {code:sql}
> create table S.T (k varchar not null primary key, v1 varchar, v2 varchar) DEFAULT_COLUMN_FAMILY='A'
> create index I on S.T (v1) include (v2)
> {code}
> {code}
> java.lang.NullPointerException
>    at org.apache.phoenix.schema.MetaDataClient.createIndex(MetaDataClient.java:704)
>    at org.apache.phoenix.compile.CreateIndexCompiler$1.execute(CreateIndexCompiler.java:76)
>    at org.apache.phoenix.jdbc.PhoenixStatement$3.call(PhoenixStatement.java:252)
>    at org.apache.phoenix.jdbc.PhoenixStatement$3.call(PhoenixStatement.java:1)
>    at org.apache.phoenix.util.PhoenixContextExecutor.call(PhoenixContextExecutor.java:54)
>    at org.apache.phoenix.jdbc.PhoenixStatement.executeMutation(PhoenixStatement.java:242)
>    at org.apache.phoenix.jdbc.PhoenixStatement.execute(PhoenixStatement.java:966)
>    at org.apache.phoenix.end2end.index.CreateIndexIT.testWriteFailureDropIndex(CreateIndexIT.java:131)
>    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>    at java.lang.reflect.Method.invoke(Method.java:597)
>    at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
>    at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>    at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
>    at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>    at org.junit.internal.runners.statements.FailOnTimeout$StatementThread.run(FailOnTimeout.java:74)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message