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


##########
core/src/main/java/org/apache/iceberg/rest/responses/PlanTableScanResponse.java:
##########
@@ -66,16 +66,24 @@ public void validate() {
         planStatus() != null, "Invalid response: plan status must be defined");
     Preconditions.checkArgument(
         planStatus() != PlanStatus.SUBMITTED || planId() != null,
-        "Invalid response: plan id should be defined when status is 
'submitted'");
+        "Invalid response: plan id should be defined when status is '%s'",
+        PlanStatus.SUBMITTED.status());

Review Comment:
   just some refactoring to use the actual enum values here and in other places



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

Reply via email to