deniskuzZ commented on code in PR #12528:
URL: https://github.com/apache/iceberg/pull/12528#discussion_r1999234522


##########
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:
   no reason, I followed the style used in this test class: 
   
https://github.com/apache/iceberg/pull/12528/files#diff-31a7139557d5a20af8245ddf3f9a4ff125094cd5d4f50b19e08104fecbabf98dR64-R66



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

Reply via email to