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

lzljs3620320 pushed a commit to branch release-1.1
in repository https://gitbox.apache.org/repos/asf/paimon.git

commit 715d9a09467310589bc0a54f97f12a1063e4ad3b
Author: Yubin Li <[email protected]>
AuthorDate: Tue Apr 15 15:05:01 2025 +0800

    [doc] Exclude deprecated `branch` option (#5460)
---
 docs/layouts/shortcodes/generated/core_configuration.html      | 6 ------
 paimon-common/src/main/java/org/apache/paimon/CoreOptions.java | 1 +
 2 files changed, 1 insertion(+), 6 deletions(-)

diff --git a/docs/layouts/shortcodes/generated/core_configuration.html 
b/docs/layouts/shortcodes/generated/core_configuration.html
index 665836462c..8d950f5f05 100644
--- a/docs/layouts/shortcodes/generated/core_configuration.html
+++ b/docs/layouts/shortcodes/generated/core_configuration.html
@@ -44,12 +44,6 @@ under the License.
             <td>Boolean</td>
             <td>Whether to create underlying storage when reading and writing 
the table.</td>
         </tr>
-        <tr>
-            <td><h5>branch</h5></td>
-            <td style="word-wrap: break-word;">"main"</td>
-            <td>String</td>
-            <td>Specify branch name.</td>
-        </tr>
         <tr>
             <td><h5>bucket</h5></td>
             <td style="word-wrap: break-word;">-1</td>
diff --git a/paimon-common/src/main/java/org/apache/paimon/CoreOptions.java 
b/paimon-common/src/main/java/org/apache/paimon/CoreOptions.java
index bd671664b8..cd2ba6322b 100644
--- a/paimon-common/src/main/java/org/apache/paimon/CoreOptions.java
+++ b/paimon-common/src/main/java/org/apache/paimon/CoreOptions.java
@@ -160,6 +160,7 @@ public class CoreOptions implements Serializable {
                     .noDefaultValue()
                     .withDescription("The file path of this table in the 
filesystem.");
 
+    @ExcludeFromDocumentation("Avoid using deprecated options")
     public static final ConfigOption<String> BRANCH =
             
key("branch").stringType().defaultValue("main").withDescription("Specify branch 
name.");
 

Reply via email to