From 403820599dff25cc1086b6ddfcbb9f6d795961fc Mon Sep 17 00:00:00 2001 From: xy720 <22125576+xy720@users.noreply.github.com> Date: Mon, 18 Mar 2024 11:35:08 +0800 Subject: [PATCH] [bug](inverted index) fix npe of InvertedIndexStorageFormat in table property (#32357) Fix problem that if fe upgrade from a older version, it has error like: ``` MySQL [test]> show full tables; ERROR 1105 (HY000): NullPointerException, msg: java.lang.NullPointerException: Cannot invoke "org.apache.doris.thrift.TInvertedIndexStorageFormat.toString()" because the return value of "org.apache.doris.catalog.OlapTable.getInvertedIndexStorageFormat()" is null ``` --- .../src/main/java/org/apache/doris/catalog/TableProperty.java | 1 + 1 file changed, 1 insertion(+) diff --git a/fe/fe-core/src/main/java/org/apache/doris/catalog/TableProperty.java b/fe/fe-core/src/main/java/org/apache/doris/catalog/TableProperty.java index dd3dd165d7..0846579fa1 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/catalog/TableProperty.java +++ b/fe/fe-core/src/main/java/org/apache/doris/catalog/TableProperty.java @@ -573,6 +573,7 @@ public class TableProperty implements Writable { .buildMinLoadReplicaNum() .buildStorageMedium() .buildStorageFormat() + .buildInvertedIndexStorageFormat() .buildDataSortInfo() .buildCompressionType() .buildStoragePolicy()