how to handle null value of an UUID column of Cassandra?
I used the tCassandraInput component to extract data from a Cassandra database.
the source table looks like:
create table tbl001 ( recid uuid, createddttm timestamp, addressid uuid, primary key ( recid, createddttm) );
when handling a row in this table with addressid is NULL, Talend stops and reports an nullPointerException error.
in java debug run window, I can see the error was cause by this line:
row5.addressid = row_tCassandraInput_2.getUUID("\"addressid\"").toString();
( because row_tCassandraInput_2.getUUID("\"addressid\"") gets null, toString() raises the exception )
but as you know, the jave code generated automatically can not be changed.
how can I do in such a case?