Skip to content

Commit

Permalink
[fix](fe) Fix the sql of AddPartitionRecord
Browse files Browse the repository at this point in the history
Cherry-pick apache#37295.

The range field is accidentally compared to DUMMY_ITEM.

It was introduced by apache#35461.
  • Loading branch information
w41ter committed Jul 5, 2024
1 parent cb12b26 commit 35d54fe
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public AddPartitionRecord(long commitSeq, PartitionPersistInfo partitionPersistI
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());
Expand Down

0 comments on commit 35d54fe

Please sign in to comment.