You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by da...@apache.org on 2024/07/05 14:05:20 UTC
(doris) branch branch-2.1 updated: [fix](fe) Fix the sql of AddPartitionRecord (#37341)
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 <w4...@gmail.com>
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: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org