Hello! I assume this is because, previously, you managed to write a TEST where F_BOOLEAN was Object. This is cached so it comes back to haunt you.
The solution here is to remove ignite/work/marshaller/ on all nodes (and all data if it is persistent) and restart your cluster. Or change type TEST to TEST2 :) Regards, -- Ilya Kasnacheev 2018-05-08 6:05 GMT+03:00 Jonathan mayer <[email protected]>: > Hi there, I am testing different Data Types and have come up against a > problem with Boolean. > > I have created the following table from within DBeaver:- > > CREATE TABLE TEST ( > F_ID varchar PRIMARY KEY, > F_INT INTEGER, > F_BOOLEAN BOOLEAN > ) WITH "CACHE_NAME=TEST, key_type=java.lang.String, value_type=TEST"; > > > I am try to create Data via an IgniteDataStreamer. > > snippet: > > BinaryObjectBuilder binaryObjectBuilder = ignite.binary().builder("TEST"); > > binaryObjectBuilder.setField("F_BOOLEAN", true); > etc... > > BinaryObject bo = binaryObjectBuilder.build(); > > String/Integer Types are working fine. > > Getting the error message : > > Wrong value has been set [typeName=TEST, fieldName=F_BOOLEAN, > fieldType=Object, assignedValueType=boolean] > > Any help would be appreciated > > Jonathan >
