[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.
This commit is contained in:
walter
2024-07-05 22:05:12 +08:00
committed by GitHub
parent 5de6aa74c0
commit 7ce4a42d28

View File

@ -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());