Uploaded image for project: 'ORC'
  1. ORC
  2. ORC-438

NPE in StringStatisticsImpl.merge()

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.6.0
    • Component/s: None
    • Labels:
      None

      Description

      StringStatisticsImpl.merge() does not test the conditions safely which can cause NPE e.g.

      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)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                smore Sandeep More
                Reporter:
                smore Sandeep More
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: