zhangjun0x01 opened a new issue, #2119: URL: https://github.com/apache/incubator-paimon/issues/2119
### Search before asking - [X] I searched in the [issues](https://github.com/apache/incubator-paimon/issues) and found nothing similar. ### Paimon version master ### Compute Engine flink ### Minimal reproduce step 1. create table t1(id int primary key not enforced, name string); 2. insert into t1 select 1,'a'; 3. alter table t1 add age int; 4. insert into t1 select 2,'b',10; 5. select * from t1 /*+ OPTIONS('scan.mode'='from-snapshot','scan.snapshot-id'='1') ### What doesn't meet your expectations? the query sql throw an exception ``` Caused by: java.lang.IllegalArgumentException: Flink schema and store schema are not the same, store schema is ROW<`id` INT NOT NULL, `name` STRING>, Flink schema is ROW<`id` INT NOT NULL, `name` STRING, `age` INT> NOT NULL at org.apache.paimon.utils.Preconditions.checkArgument(Preconditions.java:149) at org.apache.paimon.flink.AbstractFlinkTableFactory.buildPaimonTable(AbstractFlinkTableFactory.java:226) at org.apache.paimon.flink.AbstractFlinkTableFactory.createDynamicTableSource(AbstractFlinkTableFactory.java:93) at org.apache.paimon.flink.FlinkTableFactory.createDynamicTableSource(FlinkTableFactory.java:57) at org.apache.flink.table.factories.FactoryUtil.createDynamicTableSource(FactoryUtil.java:216) ... 48 more ``` ### Anything else? _No response_ ### Are you willing to submit a PR? - [X] I'm willing to submit a PR! -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
