Closed KenMcK1 closed 6 years ago
I think the issue here is that Cassandra doesn't accept null as values for a map. The driver could be more careful with this situation (see https://github.com/datastax/java-driver/blob/2.1.6/driver-core/src/main/java/com/datastax/driver/core/BoundStatement.java#L191) and reject the value. On the other hand, I'm not really sure what the loader could do in this case. Reject the record? Clean it up?
This is a good question. What behavior is desired? Should it be deemed a bad parse and put in the BADPARSE file?
Cleaning up the value will silently alter the value which might carry meaning, so my vote would be to reject the row and place it in the BADPARSE file.
Something going wrong with binding values. It's hard to be more specific as there's nothing in the loader log files and no indication of which row caused the problem. The table contains three text fields and one map<text, text>. There are some entries in the map which contain a name and no value -- along the lines of "{abc:,def:}".