Jibing-Li commented on code in PR #26163:
URL: https://github.com/apache/doris/pull/26163#discussion_r1379549203


##########
fe/fe-core/src/main/java/org/apache/doris/statistics/util/StatisticsUtil.java:
##########
@@ -177,7 +177,7 @@ public static AutoCloseConnectContext 
buildConnectContext(boolean limitScan) {
         sessionVariable.enablePageCache = false;
         sessionVariable.parallelExecInstanceNum = 
Config.statistics_sql_parallel_exec_instance_num;
         sessionVariable.parallelPipelineTaskNum = 
Config.statistics_sql_parallel_exec_instance_num;
-        sessionVariable.setEnableNereidsPlanner(false);
+        sessionVariable.setEnableNereidsPlanner(true);

Review Comment:
   Since  we are going to use nereids planner, better set forbidUnknownColStats 
= false, otherwise the collection may fail when there is no stats for the 
collecting table.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to