Details
-
Bug
-
Status: Resolved
-
Normal
-
Resolution: Fixed
-
Availability - Process Crash
-
Normal
-
Normal
-
User Report
-
All
-
None
-
Description
When UDT field values are set to null, the bulk writer throws NPE, e.g. the stacktrace below. Although it is on the boolean type, the NPE can be thrown on all other types whenever the value is null.
Caused by: java.lang.NullPointerException at org.apache.cassandra.spark.data.types.Boolean.setInnerValue(Boolean.java:91) at org.apache.cassandra.spark.data.complex.CqlUdt.setInnerValue(CqlUdt.java:534) at org.apache.cassandra.spark.data.complex.CqlUdt.toUserTypeValue(CqlUdt.java:522) at org.apache.cassandra.spark.data.complex.CqlUdt.convertForCqlWriter(CqlUdt.java:169) at org.apache.cassandra.spark.bulkwriter.RecordWriter.maybeConvertUdt(RecordWriter.java:450) at org.apache.cassandra.spark.bulkwriter.RecordWriter.getBindValuesForColumns(RecordWriter.java:432) at org.apache.cassandra.spark.bulkwriter.RecordWriter.writeRow(RecordWriter.java:415) at org.apache.cassandra.spark.bulkwriter.RecordWriter.write(RecordWriter.java:202)