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

NPE in StringStatisticsImpl.merge()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.6.0
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: