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


##########
api/src/main/java/org/apache/iceberg/types/Types.java:
##########
@@ -1160,6 +1160,10 @@ public static ListType ofRequired(int elementId, Type 
elementType) {
     private transient List<NestedField> fields = null;
 
     private ListType(NestedField elementField) {
+      Preconditions.checkArgument(
+          !elementField.type().equals(UnknownType.get()),
+          "Cannot create ListType with unknown type: %s",
+          elementField.name);

Review Comment:
   I'm not sure that we should fail here. Can't Avro represent a list of 
unknowns using a `NULL` schema?
   
   I would rather fail in the Parquet integration when converting to a Parquet 
schema because this is not allowed in Parquet but is fine in Avro or Iceberg.



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