Tanuj Khurana created PHOENIX-7468:
--------------------------------------

             Summary: NPE in SchemaExtractionTool on salted table
                 Key: PHOENIX-7468
                 URL: https://issues.apache.org/jira/browse/PHOENIX-7468
             Project: Phoenix
          Issue Type: Bug
    Affects Versions: 5.2.0, 5.2.1, 5.2.2
            Reporter: Tanuj Khurana
            Assignee: Tanuj Khurana


On a salted table, if the order of PK columns in the create table definition is 
different from the order specified in the primary key constraint the schema 
extraction tool fails with a NPE.
{code:java}
java.lang.NullPointerException  at 
org.apache.phoenix.schema.tool.SchemaExtractionProcessor.getColumnInfoString(SchemaExtractionProcessor.java:587)
     at 
org.apache.phoenix.schema.tool.SchemaExtractionProcessor.getColumnInfoStringForTable(SchemaExtractionProcessor.java:504)
     at 
org.apache.phoenix.schema.tool.SchemaExtractionProcessor.extractCreateTableDDL(SchemaExtractionProcessor.java:307)
   at 
org.apache.phoenix.schema.tool.SchemaExtractionProcessor.process(SchemaExtractionProcessor.java:100)
 at org.apache.phoenix.schema.tool.SchemaTool.run(SchemaTool.java:80)    at 
org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:82)    at 
org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:97)    at 
org.apache.phoenix.schema.tool.SchemaTool.main(SchemaTool.java:170) {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to