Skip to content

Missing Types.UUIDType in SUPPORTED_PRIMITIVES #1302

@openinx

Description

@openinx

I found that we did not put uuid type in org.apache.iceberg.data.DataTest, and after added it in the SUPPORTED_PRIMITIVES (using the following patch), it would break many unit tests.

diff --git a/data/src/test/java/org/apache/iceberg/data/DataTest.java b/data/src/test/java/org/apache/iceberg/data/DataTest.java
index 5566a753..03f848a9 100644
--- a/data/src/test/java/org/apache/iceberg/data/DataTest.java
+++ b/data/src/test/java/org/apache/iceberg/data/DataTest.java
@@ -56,7 +56,8 @@ public abstract class DataTest {
       required(114, "dec_9_0", Types.DecimalType.of(9, 0)),
       required(115, "dec_11_2", Types.DecimalType.of(11, 2)),
       required(116, "dec_38_10", Types.DecimalType.of(38, 10)), // maximum precision
-      required(117, "time", Types.TimeType.get())
+      required(117, "time", Types.TimeType.get()),
+      required(118, "uuid", Types.UUIDType.get())
   );
 
   @Rule

The broken unit tests:

image

We should add the uuid type in the tests and fix those broken cases.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions