Initial-neko opened a new issue #3617:
URL: https://github.com/apache/iceberg/issues/3617


   When a field is nullable, SparkSQL cannot change this field to (not null)
   
   refer to this SQL:
   
   ```
   create table test_null2 (id INT NOT NULL, data int, data2 int) using iceberg;
   alter table test_null2 alter column id set not null; 
   alter table test_null2 alter column id drop not null;
   alter table test_null2 alter column id set not null;  (error)
   alter table test_null2 alter column data set not null;(error)
   ```
   
   this is an empty table, Moreover, iceberg can support schema changes
   I can change this though iceberg API like this:
   
   
`table.updateSchema().allowIncompatibleChanges().requireColumn("data").commit();`
   can someone know how to use SQL changing this field null property?


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