## Proposed changes backport #38079
This commit is contained in:
@ -28,6 +28,8 @@ import org.apache.doris.persist.gson.GsonUtils;
|
||||
import org.apache.doris.thrift.TIndexType;
|
||||
import org.apache.doris.thrift.TOlapTableIndex;
|
||||
|
||||
import com.google.common.collect.Lists;
|
||||
import com.google.common.collect.Maps;
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
|
||||
@ -67,9 +69,9 @@ public class Index implements Writable {
|
||||
IndexDef.IndexType indexType, Map<String, String> properties, String comment) {
|
||||
this.indexId = indexId;
|
||||
this.indexName = indexName;
|
||||
this.columns = columns;
|
||||
this.columns = columns == null ? Lists.newArrayList() : Lists.newArrayList(columns);
|
||||
this.indexType = indexType;
|
||||
this.properties = properties;
|
||||
this.properties = properties == null ? Maps.newHashMap() : Maps.newHashMap(properties);
|
||||
this.comment = comment;
|
||||
if (indexType == IndexDef.IndexType.INVERTED) {
|
||||
if (this.properties != null && !this.properties.isEmpty()) {
|
||||
|
||||
Reference in New Issue
Block a user