[opt](inverted index) Controls whether the in_list can execute fast_execute. (#40141)

https://github.com/apache/doris/pull/40022
This commit is contained in:
zzzxl
2024-08-30 10:32:43 +08:00
committed by GitHub
parent ca07a00c93
commit 70daa1f85d
8 changed files with 39 additions and 3 deletions

View File

@ -621,6 +621,8 @@ public class SessionVariable implements Serializable, Writable {
public static final String ENABLE_MATCH_WITHOUT_INVERTED_INDEX = "enable_match_without_inverted_index";
public static final String ENABLE_FALLBACK_ON_MISSING_INVERTED_INDEX = "enable_fallback_on_missing_inverted_index";
public static final String IN_LIST_VALUE_COUNT_THRESHOLD = "in_list_value_count_threshold";
/**
* If set false, user couldn't submit analyze SQL and FE won't allocate any related resources.
*/
@ -2022,6 +2024,13 @@ public class SessionVariable implements Serializable, Writable {
})
public boolean enableFallbackOnMissingInvertedIndex = true;
@VariableMgr.VarAttr(name = IN_LIST_VALUE_COUNT_THRESHOLD, description = {
"in条件value数量大于这个threshold后将不会走fast_execute",
"When the number of values in the IN condition exceeds this threshold,"
+ " fast_execute will not be used."
})
public int inListValueCountThreshold = 10;
public void setEnableEsParallelScroll(boolean enableESParallelScroll) {
this.enableESParallelScroll = enableESParallelScroll;
}
@ -3525,6 +3534,7 @@ public class SessionVariable implements Serializable, Writable {
tResult.setEnableFallbackOnMissingInvertedIndex(enableFallbackOnMissingInvertedIndex);
tResult.setKeepCarriageReturn(keepCarriageReturn);
tResult.setInListValueCountThreshold(inListValueCountThreshold);
return tResult;
}