https://github.com/apache/doris/pull/38077
This commit is contained in:
@ -615,6 +615,9 @@ public class SessionVariable implements Serializable, Writable {
|
||||
public static final String DISABLE_EMPTY_PARTITION_PRUNE = "disable_empty_partition_prune";
|
||||
// CLOUD_VARIABLES_BEGIN
|
||||
|
||||
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";
|
||||
|
||||
/**
|
||||
* If set false, user couldn't submit analyze SQL and FE won't allocate any related resources.
|
||||
*/
|
||||
@ -1989,6 +1992,20 @@ public class SessionVariable implements Serializable, Writable {
|
||||
})
|
||||
public boolean enableESParallelScroll = true;
|
||||
|
||||
@VariableMgr.VarAttr(name = ENABLE_MATCH_WITHOUT_INVERTED_INDEX, description = {
|
||||
"开启无索引match查询功能,建议正式环境保持开启",
|
||||
"Enable no-index match query functionality."
|
||||
+ " it is recommended to keep this enabled in the production environment."
|
||||
})
|
||||
public boolean enableMatchWithoutInvertedIndex = true;
|
||||
|
||||
@VariableMgr.VarAttr(name = ENABLE_FALLBACK_ON_MISSING_INVERTED_INDEX, description = {
|
||||
"开启后在没有找到索引的情况下直接查询报错,建议正式环境保持开启",
|
||||
"After enabling, it will directly query and report an error if no index is found."
|
||||
+ " It is recommended to keep this enabled in the production environment."
|
||||
})
|
||||
public boolean enableFallbackOnMissingInvertedIndex = true;
|
||||
|
||||
public void setEnableEsParallelScroll(boolean enableESParallelScroll) {
|
||||
this.enableESParallelScroll = enableESParallelScroll;
|
||||
}
|
||||
@ -3472,6 +3489,10 @@ public class SessionVariable implements Serializable, Writable {
|
||||
tResult.setSerdeDialect(getSerdeDialect());
|
||||
tResult.setHiveOrcUseColumnNames(hiveOrcUseColumnNames);
|
||||
tResult.setHiveParquetUseColumnNames(hiveParquetUseColumnNames);
|
||||
|
||||
tResult.setEnableMatchWithoutInvertedIndex(enableMatchWithoutInvertedIndex);
|
||||
tResult.setEnableFallbackOnMissingInvertedIndex(enableFallbackOnMissingInvertedIndex);
|
||||
|
||||
tResult.setKeepCarriageReturn(keepCarriageReturn);
|
||||
return tResult;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user