[improve](config)del useless creation config for inverted index (#39005)
## Proposed changes delete useless config : enable_create_inverted_index_for_array backport: https://github.com/apache/doris/pull/39006 Issue Number: close #xxx <!--Describe your changes.-->
This commit is contained in:
@ -22,7 +22,6 @@ import org.apache.doris.catalog.Column;
|
||||
import org.apache.doris.catalog.KeysType;
|
||||
import org.apache.doris.catalog.PrimitiveType;
|
||||
import org.apache.doris.common.AnalysisException;
|
||||
import org.apache.doris.common.Config;
|
||||
|
||||
import com.google.common.base.Strings;
|
||||
import com.google.common.collect.Lists;
|
||||
@ -238,9 +237,6 @@ public class IndexDef {
|
||||
}
|
||||
|
||||
if (indexType == IndexType.INVERTED) {
|
||||
if (!Config.enable_create_inverted_index_for_array && colType.isArrayType()) {
|
||||
throw new AnalysisException("inverted index does not support array type column:" + indexColName);
|
||||
}
|
||||
InvertedIndexUtil.checkInvertedIndexParser(indexColName, colType, properties);
|
||||
} else if (indexType == IndexType.NGRAM_BF) {
|
||||
if (colType != PrimitiveType.CHAR && colType != PrimitiveType.VARCHAR
|
||||
|
||||
@ -23,7 +23,6 @@ import org.apache.doris.analysis.InvertedIndexUtil;
|
||||
import org.apache.doris.catalog.Env;
|
||||
import org.apache.doris.catalog.Index;
|
||||
import org.apache.doris.catalog.KeysType;
|
||||
import org.apache.doris.common.Config;
|
||||
import org.apache.doris.nereids.exceptions.AnalysisException;
|
||||
import org.apache.doris.nereids.types.ArrayType;
|
||||
import org.apache.doris.nereids.types.DataType;
|
||||
@ -124,9 +123,6 @@ public class IndexDefinition {
|
||||
}
|
||||
|
||||
if (indexType == IndexType.INVERTED) {
|
||||
if (!Config.enable_create_inverted_index_for_array && colType.isArrayType()) {
|
||||
throw new AnalysisException("inverted index does not support array type column: " + indexColName);
|
||||
}
|
||||
try {
|
||||
InvertedIndexUtil.checkInvertedIndexParser(indexColName,
|
||||
colType.toCatalogDataType().getPrimitiveType(), properties);
|
||||
|
||||
Reference in New Issue
Block a user