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

dataroaring pushed a commit to branch branch-3.0
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-3.0 by this push:
     new 5cd2e87120f branch-3.0: [fix](binlog)default partition dont append 
version_info (#54450)
5cd2e87120f is described below

commit 5cd2e87120f516707bfb3a7efdbfeba83df7e992
Author: koarz <[email protected]>
AuthorDate: Fri Aug 8 09:53:02 2025 +0800

    branch-3.0: [fix](binlog)default partition dont append version_info (#54450)
    
    3.0 dont support syntax default partition with properties, it think
    ("values_info"="x") is a values in (xx), the ccr would get the wrong
    result(tosql), the sql cant execute
---
 .../src/main/java/org/apache/doris/binlog/AddPartitionRecord.java   | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git 
a/fe/fe-core/src/main/java/org/apache/doris/binlog/AddPartitionRecord.java 
b/fe/fe-core/src/main/java/org/apache/doris/binlog/AddPartitionRecord.java
index 4ca3213ec12..8749de2f286 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/binlog/AddPartitionRecord.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/binlog/AddPartitionRecord.java
@@ -95,10 +95,10 @@ public class AddPartitionRecord {
             if (!partitionSql.isEmpty()) {
                 sb.append("VALUES IN ");
                 sb.append(partitionSql);
+                sb.append(" (\"version_info\" = \"");
+                sb.append(partition.getVisibleVersion());
+                sb.append("\");");
             }
-            sb.append(" (\"version_info\" = \"");
-            sb.append(partition.getVisibleVersion());
-            sb.append("\");");
         } else {
             // unpartitioned.
         }


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to