nastra commented on code in PR #12165:
URL: https://github.com/apache/iceberg/pull/12165#discussion_r1940645769


##########
api/src/main/java/org/apache/iceberg/types/Types.java:
##########
@@ -609,7 +609,8 @@ public Builder withWriteDefault(Object fieldWriteDefault) {
       }
 
       public NestedField build() {
-        // the constructor validates the fields
+        Preconditions.checkNotNull(id, "id cannot be null");

Review Comment:
   ```suggestion
           Preconditions.checkNotNull(id, "Id cannot be null");
   ```



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