diff --git a/fe/fe-core/src/main/java/org/apache/doris/catalog/ListPartitionItem.java b/fe/fe-core/src/main/java/org/apache/doris/catalog/ListPartitionItem.java index dafdcdc49f5393d..937ef6a561e7668 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/catalog/ListPartitionItem.java +++ b/fe/fe-core/src/main/java/org/apache/doris/catalog/ListPartitionItem.java @@ -24,6 +24,7 @@ import com.google.common.collect.Lists; import com.google.common.collect.Sets; +import com.google.gson.annotations.SerializedName; import java.io.DataInput; import java.io.DataOutput; @@ -37,6 +38,7 @@ public class ListPartitionItem extends PartitionItem { public static final ListPartitionItem DUMMY_ITEM = new ListPartitionItem(Lists.newArrayList()); + @SerializedName(value = "partitionKeys") private final List partitionKeys; private boolean isDefaultPartition = false; diff --git a/fe/fe-core/src/main/java/org/apache/doris/catalog/RangePartitionItem.java b/fe/fe-core/src/main/java/org/apache/doris/catalog/RangePartitionItem.java index bb7ddabbaa4b7b6..34f82a00e0e06f8 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/catalog/RangePartitionItem.java +++ b/fe/fe-core/src/main/java/org/apache/doris/catalog/RangePartitionItem.java @@ -23,12 +23,14 @@ import org.apache.doris.mtmv.MTMVUtil; import com.google.common.collect.Range; +import com.google.gson.annotations.SerializedName; import java.io.DataOutput; import java.io.IOException; import java.util.Optional; public class RangePartitionItem extends PartitionItem { + @SerializedName(value = "range") private Range partitionKeyRange; public static final Range DUMMY_RANGE; public static final RangePartitionItem DUMMY_ITEM;