This is an automated email from the ASF dual-hosted git repository.

yiguolei pushed a commit to branch branch-4.2
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-4.2 by this push:
     new 7738bcbc5d6 [improvement](fe) Adjust scanner defaults for branch-4.2 
(#68376)
7738bcbc5d6 is described below

commit 7738bcbc5d6888d54c489e9daf65a4719543051d
Author: HappenLee <[email protected]>
AuthorDate: Wed Sep 23 08:49:45 2026 +0800

    [improvement](fe) Adjust scanner defaults for branch-4.2 (#68376)
    
    ### What problem does this PR solve?
    
    Issue Number: None
    
    Related PR: #68374, #63389, #65263
    
    Problem Summary:
    
    On branch-4.2, sessions currently default to `min_scanners_concurrency =
    1` and `enable_expr_zonemap_filter = false`. Set these defaults to `4`
    and `true`, respectively, and update the English and Chinese
    session-variable descriptions.
    
    This enables the existing expression ZoneMap filtering path by default
    and raises the minimum scanner concurrency under the existing
    scanner-count, concurrency and memory limits. Serial scans continue to
    use one scanner. Both variables remain configurable through the existing
    session/global settings and are already forwarded to BE.
    
    ### Release note
    
    Enable expression ZoneMap filtering by default and increase the default
    `min_scanners_concurrency` from `1` to `4`.
    
    ### Check List (For Author)
    
    - Test: FE unit tests and Checkstyle passed.
    - `MAVEN_ARGS='-T 48' bash run-fe-ut.sh --run
    
org.apache.doris.qe.SessionVariablesTest,org.apache.doris.qe.VariableMgrTest`:
    29 tests, 0 failures/errors/skips.
    - `mvn -T 48 checkstyle:check -pl fe-core` (from `fe/`): 0 violations.
        - `git diff --check`: passed.
    - Behavior changed: Yes. The two session defaults change as described
    above.
    - Does this need documentation: No. Both session-variable descriptions
    are updated.
---
 .../src/main/java/org/apache/doris/qe/SessionVariable.java     | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/fe/fe-core/src/main/java/org/apache/doris/qe/SessionVariable.java 
b/fe/fe-core/src/main/java/org/apache/doris/qe/SessionVariable.java
index 0c099760736..2c97642435b 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/qe/SessionVariable.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/qe/SessionVariable.java
@@ -1156,9 +1156,9 @@ public class SessionVariable implements Serializable, 
Writable {
     public int localExchangeFreeBlocksLimit = 4;
 
     @VariableMgr.VarAttr(name = MIN_SCANNERS_CONCURRENCY, needForward = true, 
description = {
-        "Scanner 的最小并发度,默认为 1", "The min concurrency of Scanner, default 1"
+        "Scanner 的最小并发度,默认为 4", "The min concurrency of Scanner, default 4"
     })
-    public int minScannersConcurrency = 1;
+    public int minScannersConcurrency = 4;
 
     @VariableMgr.VarAttr(name = MIN_FILE_SCANNERS_CONCURRENCY, needForward = 
true, description = {
         "外表 Scanner 的最小并发度,默认为 1", "The min concurrency of Remote Scanner, 
default 1"
@@ -2779,12 +2779,12 @@ public class SessionVariable implements Serializable, 
Writable {
             name = ENABLE_EXPR_ZONEMAP_FILTER,
             fuzzy = true,
             description = {"控制支持该变量的 scanner 是否启用表达式 ZoneMap 过滤。"
-                    + "File Scanner V2 始终启用安全的表达式 ZoneMap 过滤。默认为 false。",
+                    + "File Scanner V2 始终启用安全的表达式 ZoneMap 过滤。默认为 true。",
                     "Controls expression ZoneMap filtering in scanners that 
honor this variable. "
                             + "File Scanner V2 always enables safe expression 
ZoneMap filtering. "
-                            + "The default value is false."},
+                            + "The default value is true."},
             needForward = true)
-    public boolean enableExprZonemapFilter = false;
+    public boolean enableExprZonemapFilter = true;
 
     @VariableMgr.VarAttr(
             name = CHECK_ORC_INIT_SARGS_SUCCESS,


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to