In RDBMS systems I can add new columns even when there is already data in a table. I wonder what is the suggested way doing this with Ignite persistent store when storing class objects?
If I have the following class with lots of data:
public class Person implements Serializable
{
@QuerySqlField
String firstName;
@QuerySqlField
String lastName;
}
And later I may want to add a new fields to this class, like
public class Person implements Serializable
{
@QuerySqlField
String firstName;
@QuerySqlField
String lastName;
@QuerySqlField
Date birthday;
}
Can I put and get old and new versions of this class without problem? What happens to the new field value when I read an old version of the class from the persistent store?
How will SQL queries work when the column birthday is not available in old versions of the data?
Thanks for any suggestions.