orc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sandeep More (JIRA)" <j...@apache.org>
Subject [jira] [Created] (ORC-438) NPE in StringStatisticsImpl.merge()
Date Wed, 21 Nov 2018 18:44:00 GMT
Sandeep More created ORC-438:
--------------------------------

             Summary: NPE in StringStatisticsImpl.merge()
                 Key: ORC-438
                 URL: https://issues.apache.org/jira/browse/ORC-438
             Project: ORC
          Issue Type: Bug
            Reporter: Sandeep More
            Assignee: Sandeep More


StringStatisticsImpl.merge() does not test the conditions safely which can cause NPE e.g.
{code:java}
java.lang.NullPointerException
    at org.apache.hadoop.io.Text.encode(Text.java:443)
    at org.apache.hadoop.io.Text.set(Text.java:198)
    at org.apache.hadoop.io.Text.<init>(Text.java:88)
    at org.apache.orc.impl.ColumnStatisticsImpl$StringStatisticsImpl.merge(ColumnStatisticsImpl.java:610)
    at org.apache.orc.impl.writer.StringBaseTreeWriter.createRowIndexEntry(StringBaseTreeWriter.java:218)
    at org.apache.orc.impl.writer.StructTreeWriter.createRowIndexEntry(StructTreeWriter.java:106)
    at org.apache.orc.impl.WriterImpl.createRowIndexEntry(WriterImpl.java:435)
    at org.apache.orc.impl.WriterImpl.flushStripe(WriterImpl.java:441)
    at org.apache.orc.impl.WriterImpl.close(WriterImpl.java:582){code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message