You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by "nastra (via GitHub)" <gi...@apache.org> on 2023/06/14 09:04:12 UTC

[GitHub] [iceberg] nastra commented on a diff in pull request #7838: Core: Generate Builder for UpdateTableRequest

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


##########
core/src/main/java/org/apache/iceberg/rest/requests/UpdateTableRequest.java:
##########
@@ -31,7 +32,10 @@
 import org.apache.iceberg.relocated.com.google.common.collect.Lists;
 import org.apache.iceberg.relocated.com.google.common.collect.Sets;
 import org.apache.iceberg.rest.RESTRequest;
+import org.immutables.builder.Builder.Constructor;
+import org.immutables.value.Value;
 
+@Value.Style(newBuilder = "newBuilder")

Review Comment:
   without this, one would instantiate the Builder via `new UpdateTableRequestBuilder()`, which is probably fine as well. We could also add
   ```
   public static UpdateTableRequestBuilder builder() {
       return new UpdateTableRequestBuilder();
   }
   ```
   to `UpdateTableRequest`



-- 
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-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org