rdblue commented on code in PR #13219:
URL: https://github.com/apache/iceberg/pull/13219#discussion_r2229469894


##########
spark/v4.0/spark/src/test/java/org/apache/iceberg/spark/data/AvroDataTest.java:
##########
@@ -605,4 +723,172 @@ public void testRowLineage() throws Exception {
             record.copy(Map.of("id", 4L, "data", "d", "_row_id", 1_001L)),
             record.copy(Map.of("id", 5L, "data", "e"))));
   }
+
+  @Test
+  public void testUnshreddedVariant() throws IOException {
+    Assumptions.assumeThat(supportsVariant()).as("Variant support is not 
implemented").isTrue();
+
+    Schema schema =
+        new Schema(required(0, "id", LongType.get()), optional(1, "data", 
Types.VariantType.get()));
+
+    writeAndValidate(schema);
+  }
+
+  @Test
+  public void testShreddedVariant() throws IOException {

Review Comment:
   I would probably remove this test as well. The only thing that it verifies 
is that `VariantReaderBuilder` was used to create the Parquet reader, but 
that's clear from the implementation. I think the `testTypeSchema(VariantType)` 
case is enough.



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