Hi Team,
We are using the DDL script to create the Ignite cache if there is an column data type change needed due to change in cache value type model. Cache operations are failing with error like column data type change not supported. Try deleting work/marshaller folder.
Deleting above folder is working. Is it the way to solve the problem and recommended for production?
Few other observations related to the same issue: (without delete work/marshaller folder)
1. Even delete and recreate the table with modified column and new datatype, same error.
2. Even new table name with new cache name is also producing the same error.
3. New table name with new cache name and new model class as value type is working.
Is binary objects as cache value types solves the problem? Looks to be existing filed data type change not supported for binary objects as well.
CREATE TABLE IF NOT EXISTS "PUBLIC".EMPLOYEE(
Id VARCHAR,
name VARCHAR,
title VARCHAR,
age INT,
PRIMARY KEY (Id)
)WITH "backups=1,KEY_TYPE=java.lang.String,CACHE_NAME=EMP_CACHE,
VALUE_TYPE=com.demo.model.EmployeeModel";
Your feedback is highly appreciated.
Thanks
Chandra
------------------------------
Chandra Donthoji
SE
NisumSE
------------------------------