anoopj commented on code in PR #16849:
URL: https://github.com/apache/iceberg/pull/16849#discussion_r3431350896
##########
core/src/main/java/org/apache/iceberg/TrackingStruct.java:
##########
@@ -130,6 +130,13 @@ void inheritFrom(Tracking manifestTracking) {
}
}
+ void setFirstRowId(Long newFirstRowId) {
+ Preconditions.checkArgument(newFirstRowId != null, "Invalid first row ID:
null");
Review Comment:
Why not just make the parameter `long` since it's required anyway?
##########
core/src/main/java/org/apache/iceberg/TrackingStruct.java:
##########
@@ -130,6 +130,13 @@ void inheritFrom(Tracking manifestTracking) {
}
}
+ void setFirstRowId(Long newFirstRowId) {
+ Preconditions.checkArgument(newFirstRowId != null, "Invalid first row ID:
null");
+ Preconditions.checkArgument(newFirstRowId >= 0, "Invalid first row ID:
negative");
Review Comment:
```suggestion
Preconditions.checkArgument(
newFirstRowId >= 0, "Invalid first row ID: %s (must be >= 0)",
newFirstRowId);
```
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]