[Update](inverted index) use session variable for inverted index try query threshold (#28052)
* [Update](inverted index) use session variable for inverted index try query threshold * remove unused config * update clucene
This commit is contained in:
@ -426,6 +426,8 @@ public class SessionVariable implements Serializable, Writable {
|
||||
public static final String INVERTED_INDEX_CONJUNCTION_OPT_THRESHOLD = "inverted_index_conjunction_opt_threshold";
|
||||
public static final String INVERTED_INDEX_MAX_EXPANSIONS = "inverted_index_max_expansions";
|
||||
|
||||
public static final String INVERTED_INDEX_SKIP_THRESHOLD = "inverted_index_skip_threshold";
|
||||
|
||||
public static final String AUTO_ANALYZE_START_TIME = "auto_analyze_start_time";
|
||||
|
||||
public static final String AUTO_ANALYZE_END_TIME = "auto_analyze_end_time";
|
||||
@ -1332,6 +1334,13 @@ public class SessionVariable implements Serializable, Writable {
|
||||
+ " thereby controlling query performance"})
|
||||
public int invertedIndexMaxExpansions = 50;
|
||||
|
||||
@VariableMgr.VarAttr(name = INVERTED_INDEX_SKIP_THRESHOLD,
|
||||
description = {"在倒排索引中如果预估命中量占比总量超过百分比阈值,则跳过索引直接进行匹配。",
|
||||
"In the inverted index,"
|
||||
+ " if the estimated hit ratio exceeds the percentage threshold of the total amount, "
|
||||
+ " then skip the index and proceed directly to matching."})
|
||||
public int invertedIndexSkipThreshold = 50;
|
||||
|
||||
@VariableMgr.VarAttr(name = SQL_DIALECT, needForward = true, checker = "checkSqlDialect",
|
||||
description = {"解析sql使用的方言", "The dialect used to parse sql."})
|
||||
public String sqlDialect = "doris";
|
||||
@ -2659,6 +2668,8 @@ public class SessionVariable implements Serializable, Writable {
|
||||
|
||||
tResult.setSkipMissingVersion(skipMissingVersion);
|
||||
|
||||
tResult.setInvertedIndexSkipThreshold(invertedIndexSkipThreshold);
|
||||
|
||||
return tResult;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user