This is an automated email from the ASF dual-hosted git repository.
dataroaring pushed a commit to branch branch-2.1
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-2.1 by this push:
new 7ce4a42d284 [fix](fe) Fix the sql of AddPartitionRecord (#37341)
7ce4a42d284 is described below
commit 7ce4a42d2846823bc9dd0c8709083f72095e5eff
Author: walter <[email protected]>
AuthorDate: Fri Jul 5 22:05:12 2024 +0800
[fix](fe) Fix the sql of AddPartitionRecord (#37341)
Cherry-pick #37295
The range field is accidentally compared to DUMMY_ITEM.
It was introduced by #35461.
---
.../src/main/java/org/apache/doris/binlog/AddPartitionRecord.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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 852c0b45d87..bb5485b2624 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
@@ -79,7 +79,7 @@ public class AddPartitionRecord {
sb.append("` ");
// See
fe/fe-core/src/main/java/org/apache/doris/datasource/InternalCatalog.java:addPartition
for details.
- if (!this.range.equals(RangePartitionItem.DUMMY_ITEM)) {
+ if (!this.range.equals(RangePartitionItem.DUMMY_RANGE)) {
// range
sb.append("VALUES [");
sb.append(range.lowerEndpoint().toSql());
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]