Skip to content

Commit

Permalink
[fix](fe) Fix the sql of AddPartitionRecord (#37295)
Browse files Browse the repository at this point in the history
The range field is accidentally compared to DUMMY_ITEM.

It was introduced by #35461.
  • Loading branch information
w41ter authored and dataroaring committed Jul 17, 2024
1 parent c72617d commit 06110cc
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 06110cc

Please sign in to comment.