You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by 常鑫 <xi...@intotech.com.cn> on 2021/08/20 09:44:02 UTC

回复:use java code to dynamic change sturcture of cache value

Thank you,Stephen.yes,I have found the feature in the release planning.When the ignite 3.0 will be release?


------------------------------------------------------------------
发件人:Stephen Darlington <st...@gridgain.com>
发送时间:2021年8月19日(星期四) 23:09
收件人:user <us...@ignite.apache.org>
主 题:Re: use java code to dynamic change sturcture of cache value

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, 常鑫 <xi...@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






Re: use java code to dynamic change sturcture of cache value

Posted by Stephen Darlington <st...@gridgain.com>.
You can learn more about Ignite 3 here: https://ignite-summit.org/sessions/258082 

> On 20 Aug 2021, at 10:44, 常鑫 <xi...@intotech.com.cn> wrote:
> 
> Thank you,Stephen.yes,I have found the feature in the release planning.When the ignite 3.0 will be release?
> 
> ------------------------------------------------------------------
> 发件人:Stephen Darlington <st...@gridgain.com>
> 发送时间:2021年8月19日(星期四) 23:09
> 收件人:user <us...@ignite.apache.org>
> 主 题:Re: use java code to dynamic change sturcture of cache value
> 
> 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.chang@intotech.com.cn <ma...@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
> 
> 
> 
> 
>