[Feature](inverted index) add no need read data optimize config (#38584)
pick from #36686
This commit is contained in:
@ -390,6 +390,7 @@ public class SessionVariable implements Serializable, Writable {
|
||||
public static final String ENABLE_INVERTED_INDEX_QUERY = "enable_inverted_index_query";
|
||||
|
||||
public static final String ENABLE_PUSHDOWN_COUNT_ON_INDEX = "enable_count_on_index_pushdown";
|
||||
public static final String ENABLE_NO_NEED_READ_DATA_OPT = "enable_no_need_read_data_opt";
|
||||
|
||||
public static final String GROUP_BY_AND_HAVING_USE_ALIAS_FIRST = "group_by_and_having_use_alias_first";
|
||||
public static final String DROP_TABLE_IF_CTAS_FAILED = "drop_table_if_ctas_failed";
|
||||
@ -1426,6 +1427,11 @@ public class SessionVariable implements Serializable, Writable {
|
||||
"是否启用count_on_index pushdown。", "Set whether to pushdown count_on_index."})
|
||||
public boolean enablePushDownCountOnIndex = true;
|
||||
|
||||
// Whether enable no need read data opt in segment_iterator.
|
||||
@VariableMgr.VarAttr(name = ENABLE_NO_NEED_READ_DATA_OPT, needForward = true, description = {
|
||||
"是否启用no_need_read_data opt。", "Set whether to enable no_need_read_data opt."})
|
||||
public boolean enableNoNeedReadDataOpt = true;
|
||||
|
||||
// Whether enable pushdown minmax to scan node of unique table.
|
||||
@VariableMgr.VarAttr(name = ENABLE_PUSHDOWN_MINMAX_ON_UNIQUE, needForward = true, description = {
|
||||
"是否启用pushdown minmax on unique table。", "Set whether to pushdown minmax on unique table."})
|
||||
@ -3239,6 +3245,14 @@ public class SessionVariable implements Serializable, Writable {
|
||||
this.enablePushDownCountOnIndex = enablePushDownCountOnIndex;
|
||||
}
|
||||
|
||||
public boolean isEnableNoNeedReadDataOpt() {
|
||||
return enableNoNeedReadDataOpt;
|
||||
}
|
||||
|
||||
public void setEnableNoNeedReadDataOpt(boolean enableNoNeedReadDataOpt) {
|
||||
this.enableNoNeedReadDataOpt = enableNoNeedReadDataOpt;
|
||||
}
|
||||
|
||||
public int getMaxTableCountUseCascadesJoinReorder() {
|
||||
return this.maxTableCountUseCascadesJoinReorder;
|
||||
}
|
||||
@ -3378,6 +3392,8 @@ public class SessionVariable implements Serializable, Writable {
|
||||
|
||||
tResult.setEnableInvertedIndexQuery(enableInvertedIndexQuery);
|
||||
|
||||
tResult.setEnableNoNeedReadDataOpt(enableNoNeedReadDataOpt);
|
||||
|
||||
if (dryRunQuery) {
|
||||
tResult.setDryRunQuery(true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user