nastra commented on code in PR #8147:
URL: https://github.com/apache/iceberg/pull/8147#discussion_r1274448976
##########
core/src/main/java/org/apache/iceberg/MetadataUpdate.java:
##########
@@ -377,5 +414,57 @@ public String location() {
public void applyTo(TableMetadata.Builder metadataBuilder) {
metadataBuilder.setLocation(location);
}
+
+ @Override
+ public void applyTo(ImmutableViewMetadata.Builder viewMetadataBuilder) {
+ viewMetadataBuilder.location(location);
+ viewMetadataBuilder.addChanges(new MetadataUpdate.SetLocation(location));
+ }
+ }
+
+ class AddViewVersion implements MetadataUpdate {
+ private final ViewVersion viewVersion;
+
+ public AddViewVersion(ViewVersion viewVersion) {
+ this.viewVersion = viewVersion;
+ }
+
+ public ViewVersion viewVersion() {
+ return viewVersion;
+ }
+
+ @Override
+ public void applyTo(TableMetadata.Builder metadataBuilder) {
+ // noop
Review Comment:
updated
--
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]