fennuzhichui opened a new issue #3747:
URL: https://github.com/apache/iceberg/issues/3747


   when add column use sql :  alter table test.czm33 add columns idd1bigint 
comment 'test2' after age;
   it will throw exception.
   java.lang.RuntimeException: InvalidOperationException(message:The following 
columns have types incompatible with the existing columns in their respective 
positions :
   idd)
        at 
org.apache.iceberg.relocated.com.google.common.base.Throwables.propagate(Throwables.java:241)
        at 
org.apache.iceberg.common.DynMethods$UnboundMethod.invoke(DynMethods.java:80)
        at 
org.apache.iceberg.hive.HiveTableOperations.lambda$persistTable$1(HiveTableOperations.java:220)
        at org.apache.iceberg.hive.ClientPool.run(ClientPool.java:55)
        at 
org.apache.iceberg.hive.HiveTableOperations.persistTable(HiveTableOperations.java:216)
        at 
org.apache.iceberg.hive.HiveTableOperations.doCommit(HiveTableOperations.java:191)
        at 
org.apache.iceberg.BaseMetastoreTableOperations.commit(BaseMetastoreTableOperations.java:118)
        at 
org.apache.iceberg.BaseTransaction.lambda$commitSimpleTransaction$5(BaseTransaction.java:360)
        at 
org.apache.iceberg.util.Tasks$Builder.runTaskWithRetry(Tasks.java:404)
        at 
org.apache.iceberg.util.Tasks$Builder.runSingleThreaded(Tasks.java:213)
        at org.apache.iceberg.util.Tasks$Builder.run(Tasks.java:197)
        at org.apache.iceberg.util.Tasks$Builder.run(Tasks.java:189)
        at org.apache.iceberg.BaseTransaction.commitSimpleTransaction(BaseTrans
   can reproduce follow this:
   use icebergtest.test;
   create table czm33(id int ,age bigint, idd bigint, name string, udt string) 
using iceberg partitioned by (udt);
   alter table test.czm33 add columns idd2 bigint comment 'test2' after age;


-- 
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]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to