Details
Description
null values cause a Thrift NPE when sinking to CqlRecordWriter (replacing the null values with an appropriate non-null sentinel works) :
at java.lang.Thread.run(Thread.java:680) ~[na:1.6.0_51]
java.io.IOException: java.lang.NullPointerException
at org.apache.cassandra.hadoop.cql3.CqlRecordWriter$RangeClient.run(CqlRecordWriter.java:245) ~[cassandra-all-1.2.8.jar:1.2.8]
java.lang.NullPointerException: null
at org.apache.thrift.protocol.TBinaryProtocol.writeBinary(TBinaryProtocol.java:194) ~[libthrift-0.7.0.jar:0.7.0]
at org.apache.cassandra.thrift.Cassandra$execute_prepared_cql3_query_args.write(Cassandra.java:41253) ~[cassandra-thrift-1.2.8.jar:1.2.8]
at org.apache.thrift.TServiceClient.sendBase(TServiceClient.java:63) ~[libthrift-0.7.0.jar:0.7.0]
at org.apache.cassandra.thrift.Cassandra$Client.send_execute_prepared_cql3_query(Cassandra.java:1683) ~[cassandra-thrift-1.2.8.jar:1.2.8]
at org.apache.cassandra.thrift.Cassandra$Client.execute_prepared_cql3_query(Cassandra.java:1673) ~[cassandra-thrift-1.2.8.jar:1.2.8]
at org.apache.cassandra.hadoop.cql3.CqlRecordWriter$RangeClient.run(CqlRecordWriter.java:229) ~[cassandra-all-1.2.8.jar:1.2.8]