You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iceberg.apache.org by hu...@apache.org on 2026/09/04 03:07:57 UTC

(iceberg) branch main updated: API: Fix grammatical typos in UpdatePartitionSpec Javadoc (#17941)

This is an automated email from the ASF dual-hosted git repository.

huaxingao 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 2750866c16 API: Fix grammatical typos in UpdatePartitionSpec Javadoc (#17941)
2750866c16 is described below

commit 2750866c16e1baac10650c98797da510a92be90e
Author: Uros <22...@users.noreply.github.com>
AuthorDate: Fri Sep 4 05:07:51 2026 +0200

    API: Fix grammatical typos in UpdatePartitionSpec Javadoc (#17941)
    
    Correct "the a" / "the an" to "a" / "an" in the @throws documentation of addField and removeField.
---
 .../java/org/apache/iceberg/UpdatePartitionSpec.java     | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/api/src/main/java/org/apache/iceberg/UpdatePartitionSpec.java b/api/src/main/java/org/apache/iceberg/UpdatePartitionSpec.java
index a4994d2200..d97c711288 100644
--- a/api/src/main/java/org/apache/iceberg/UpdatePartitionSpec.java
+++ b/api/src/main/java/org/apache/iceberg/UpdatePartitionSpec.java
@@ -47,8 +47,8 @@ public interface UpdatePartitionSpec extends PendingUpdate<PartitionSpec> {
    *
    * @param sourceName source column name in the table schema
    * @return this for method chaining
-   * @throws IllegalArgumentException If the an identity partition field for the source already
-   *     exists, or if this change conflicts with other additions, removals, or renames.
+   * @throws IllegalArgumentException If an identity partition field for the source already exists,
+   *     or if this change conflicts with other additions, removals, or renames.
    */
   UpdatePartitionSpec addField(String sourceName);
 
@@ -65,7 +65,7 @@ public interface UpdatePartitionSpec extends PendingUpdate<PartitionSpec> {
    *
    * @param term source column name in the table schema
    * @return this for method chaining
-   * @throws IllegalArgumentException If the a partition field for the transform and source already
+   * @throws IllegalArgumentException If a partition field for the transform and source already
    *     exists, or if this change conflicts with other additions, removals, or renames.
    */
   UpdatePartitionSpec addField(Term term);
@@ -83,7 +83,7 @@ public interface UpdatePartitionSpec extends PendingUpdate<PartitionSpec> {
    * @param name name for the partition field
    * @param term expression for the partition transform
    * @return this for method chaining
-   * @throws IllegalArgumentException If the a partition field for the transform and source already
+   * @throws IllegalArgumentException If a partition field for the transform and source already
    *     exists, if a partition field with the given name already exists, or if this change
    *     conflicts with other additions, removals, or renames.
    */
@@ -94,8 +94,8 @@ public interface UpdatePartitionSpec extends PendingUpdate<PartitionSpec> {
    *
    * @param name name of the partition field to remove
    * @return this for method chaining
-   * @throws IllegalArgumentException If the a partition field with the given name does not exist,
-   *     or if this change conflicts with other additions, removals, or renames.
+   * @throws IllegalArgumentException If a partition field with the given name does not exist, or if
+   *     this change conflicts with other additions, removals, or renames.
    */
   UpdatePartitionSpec removeField(String name);
 
@@ -107,8 +107,8 @@ public interface UpdatePartitionSpec extends PendingUpdate<PartitionSpec> {
    *
    * @param term expression for the partition transform to remove
    * @return this for method chaining
-   * @throws IllegalArgumentException If the a partition field with the given transform and source
-   *     does not exist, or if this change conflicts with other additions, removals, or renames.
+   * @throws IllegalArgumentException If a partition field with the given transform and source does
+   *     not exist, or if this change conflicts with other additions, removals, or renames.
    */
   UpdatePartitionSpec removeField(Term term);