This is an automated email from the ASF dual-hosted git repository. dataroaring pushed a commit to branch branch-3.0 in repository https://gitbox.apache.org/repos/asf/doris.git
commit 8aac782421f8954d1d06bafb7cefc79ad1403b38 Author: qiye <jianliang5...@gmail.com> AuthorDate: Fri Jul 19 14:28:40 2024 +0800 [fix](inverted index)Support rename column with inverted index (#38079) Copy columns and properties to make them mutable. close #38078 --- fe/fe-core/src/main/java/org/apache/doris/catalog/Index.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/fe/fe-core/src/main/java/org/apache/doris/catalog/Index.java b/fe/fe-core/src/main/java/org/apache/doris/catalog/Index.java index bfe1beb1dd1..03cb3f41ca0 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/catalog/Index.java +++ b/fe/fe-core/src/main/java/org/apache/doris/catalog/Index.java @@ -29,6 +29,8 @@ import org.apache.doris.proto.OlapFile; 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; @@ -68,9 +70,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()) { --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org