Basically you need to do both: change the Java class and run the SQL “ALTER 
TABLE” command. Until Ignite 3.0, they are (effectively) two distinct schemas, 
and you need to manage them separately.

> On 19 Aug 2021, at 11:14, 常鑫 <xin.ch...@intotech.com.cn> wrote:
> 
> 
> Hi All,
>    We are using Ignite 2.10.0 and we have a question on dynamic change 
> sturcture of cache value.
>     For example, a cache stores objects of the Person type.At first,it have 
> two field: "name" and "salary",then a new node join the cluster ,but the 
> person type it used have three field:"name"、  “salary" and "newCol".  I can 
> operate the new field with key-value API.But I can't see it from SQL 
> Tools.The SQL tool shows columns only which are present when Ignite cache has 
> been initialized first time. 
>    So how to publish the java code structure to the table structure.I know 
> the ddl language,but I still wonder the answer.
> 
> 
> ---------
> Thanks & Regards,
> Xin Chang
> 
> 


Reply via email to