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