This is an automated email from the ASF dual-hosted git repository.
singhpk234 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/iceberg.git
The following commit(s) were added to refs/heads/main by this push:
new 050378663b Core: Add VisibleForTesting annotation in SchemaUpdate
constructor (#15756)
050378663b is described below
commit 050378663b3513499dc7900d8d368ec07336309d
Author: Mukund Thakur <[email protected]>
AuthorDate: Tue Mar 24 19:26:23 2026 -0500
Core: Add VisibleForTesting annotation in SchemaUpdate constructor (#15756)
---
core/src/main/java/org/apache/iceberg/SchemaUpdate.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/core/src/main/java/org/apache/iceberg/SchemaUpdate.java
b/core/src/main/java/org/apache/iceberg/SchemaUpdate.java
index e42df2fe5e..1fa6ebbe8f 100644
--- a/core/src/main/java/org/apache/iceberg/SchemaUpdate.java
+++ b/core/src/main/java/org/apache/iceberg/SchemaUpdate.java
@@ -30,6 +30,7 @@ import org.apache.iceberg.expressions.Literal;
import org.apache.iceberg.mapping.MappingUtil;
import org.apache.iceberg.mapping.NameMapping;
import org.apache.iceberg.mapping.NameMappingParser;
+import
org.apache.iceberg.relocated.com.google.common.annotations.VisibleForTesting;
import org.apache.iceberg.relocated.com.google.common.base.Preconditions;
import org.apache.iceberg.relocated.com.google.common.collect.ImmutableSet;
import org.apache.iceberg.relocated.com.google.common.collect.Iterables;
@@ -71,7 +72,7 @@ class SchemaUpdate implements UpdateSchema {
this(ops, ops.current());
}
- /** For testing only. */
+ @VisibleForTesting
SchemaUpdate(Schema schema, int lastColumnId) {
this(null, null, schema, lastColumnId);
}