malhotrashivam opened a new issue, #12495: URL: https://github.com/apache/iceberg/issues/12495
### Apache Iceberg version 1.8.1 (latest release) ### Query engine None ### Please describe the bug 🐞 - I am attempting to create a table via the Iceberg Java API with the `write-default` values set on some columns. After creating the table and reading the schema back, I expected the schema to include the default value definitions but they are missing. ``` // To create a new teable final TableIdentifier tableIdentifier = TableIdentifier.parse("MyNamespace.MyTable"); final Schema schema = new Schema(List.of( Types.NestedField.required(1, "intCol", Types.IntegerType.get()), Types.NestedField.required(2, "doubleCol", Types.DoubleType.get()), Types.NestedField.required(3, "longCol", Types.LongType.get()), Types.NestedField.required("newIntCol") .withId(4) .ofType(Types.IntegerType.get()) .withWriteDefault(Integer.valueOf("10")) .build() )); catalog.createTable(tableIdentifier, schema); // To read back the schema catalog.loadTable.loadTable(tableIdentifier).schema(); // Schema doesn't have write default set for `newIntCol` ``` Same issue also exist for `initial-default` too. ### Willingness to contribute - [ ] I can contribute a fix for this bug independently - [ ] I would be willing to contribute a fix for this bug with guidance from the Iceberg community - [x] I cannot contribute a fix for this bug at this time -- 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: issues-unsubscr...@iceberg.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org For additional commands, e-mail: issues-h...@iceberg.apache.org