Uploaded image for project: 'Phoenix'
  1. Phoenix
  2. PHOENIX-1305

create index throws NPE when dataTable has specified default column family

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.2.0
    • None
    • None

    Description

      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)
      
      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)
      

      Attachments

        1. PHOENIX-1305.patch
          7 kB
          mengqingyi
        2. PHOENIX-1305-V2.patch
          5 kB
          mengqingyi

        Activity

          People

            daniel.M mengqingyi
            daniel.M mengqingyi
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: