Hi, 1. Type name can be the actual class name if you plan to work with cache value as java object. 2. Avoid names reserved to SQL keywords. 3. Put key columns into key binary object. To fetch everything use SqlFieldsQuery like: select _key,_val from ... or use SqlQuery
2016-06-30 16:11 GMT+03:00 pragmaticbigdata <[email protected]>: > I realized that the error disappears if I hard code the typeName while > constructing the BinaryObjectBuilder. > ignite.binary().builder("ConstantString"); > > Few questions based on this > 1. What is the significance of the typeName except the fact that it is used > while querying? > 2. What are the guidelines for specifying typeNames? > 3. In my use case I have few columns that are keyColumns while others are > not (I am loading a table into ignite). Do I need to have all column values > part of the value object in order to have the ability to execute a single > sql query to fetch them? Is there a better way to build the cache object in > order to have a single query to fetch all the column values of the object > (that are part of the cache key and value)? > > Thanks! > > > > -- > View this message in context: > http://apache-ignite-users.70518.x6.nabble.com/Error-while-loading-data-into-cache-with-BinaryObject-as-key-field-tp6014p6019.html > Sent from the Apache Ignite Users mailing list archive at Nabble.com. > -- Best regards, Alexei Scherbakov
