imay commented on a change in pull request #1566: Add switch for cost optimization URL: https://github.com/apache/incubator-doris/pull/1566#discussion_r310421799
########## File path: fe/src/main/java/org/apache/doris/analysis/SelectStmt.java ########## @@ -379,8 +379,17 @@ public void analyze(Analyzer analyzer) throws AnalysisException, UserException { if (needToSql) { sqlString_ = toSql(); } - reorderTable(analyzer); + if (!analyzer.getContext().getSessionVariable().isDisableCostOptimization()) { + reorderTable(analyzer); + if (fromClause_.getTableRefs().size() > 1) { Review comment: if LOG.isdebug() { } ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@doris.apache.org For additional commands, e-mail: dev-h...@doris.apache.org