[ 
https://issues.apache.org/jira/browse/IGNITE-21297?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ivan Gagarkin updated IGNITE-21297:
-----------------------------------
    Attachment: alterTableTest1.java

> Altering the table causes the record API to break
> -------------------------------------------------
>
>                 Key: IGNITE-21297
>                 URL: https://issues.apache.org/jira/browse/IGNITE-21297
>             Project: Ignite
>          Issue Type: Bug
>            Reporter: Ivan Gagarkin
>            Priority: Critical
>              Labels: ignite-3
>         Attachments: alterTableTest1.java
>
>
> *Steps to Reproduce:*
>  # Create a table using the command: {{{}CREATE TABLE TEST (id INT PRIMARY 
> KEY, country VARCHAR){}}}.
>  # Insert some data into the table.
>  # Alter the table by adding a new column: {{{}ALTER TABLE TEST ADD COLUMN 
> city VARCHAR{}}}.
>  # Fetch the data using the record API: Tuple record = 
> table.recordView().get(null, key);
>  # 
> Try to remove the data: List<Tuple> result = 
> table.recordView().deleteAllExact(null, List.of(record));
> *Expected Behavior:*
> The data is removed.
> *Actual Behavior:*
> {code:java}
> Tuple doesn't match schema: schemaVersion=2, extraColumns=[] 
> org.apache.ignite.lang.MarshallerException: IGN-CMN-65535 
> TraceId:daeb79d1-49bb-47bd-af04-9f9162a44d07 Tuple doesn't match schema: 
> schemaVersion=2, extraColumns=[]{code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to