deniskuzZ commented on code in PR #12528: URL: https://github.com/apache/iceberg/pull/12528#discussion_r1999259243
########## core/src/test/java/org/apache/iceberg/TestMetadataTableScansWithPartitionEvolution.java: ########## @@ -243,6 +245,102 @@ public void testPartitionSpecEvolutionToUnpartitioned() throws IOException { } } + @TestTemplate + public void testPartitionSpecEvolutionNullValues() throws IOException { + Schema schema = + new Schema( + required(1, "company_id", Types.IntegerType.get()), + required(2, "dept_id", Types.IntegerType.get()), + required(3, "team_id", Types.IntegerType.get())); + + table = + TestTables.create( + tableDir, + metadataDir, + "nulltest", + schema, + PartitionSpec.builderFor(schema).identity("company_id").build(), + SortOrder.unsorted(), + formatVersion); + table.newFastAppend().appendFile(newDataFile("company_id=__HIVE_DEFAULT_PARTITION__")).commit(); + + table.updateSpec().addField("dept_id").commit(); + table + .newFastAppend() + .appendFile( + newDataFile( + "company_id=__HIVE_DEFAULT_PARTITION__" + "/dept_id=__HIVE_DEFAULT_PARTITION__")) + .commit(); + + table.updateSpec().addField("team_id").commit(); + table + .newFastAppend() + .appendFile( + newDataFile( + "company_id=__HIVE_DEFAULT_PARTITION__" Review Comment: note, this test class uses TestTables.TestTable wrapper that doesn't support `StructLike partition` -- 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 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