morningman commented on a change in pull request #1566: Add switch for cost
optimization
URL: https://github.com/apache/incubator-doris/pull/1566#discussion_r310417280
##########
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) {
+ final StringBuilder logBuilder = new StringBuilder("Tables
order:");
+ for (TableRef tableRef : fromClause_.getTableRefs()) {
+ logBuilder.append(" ").append(tableRef.getAlias());
+ }
+ LOG.info(logBuilder.toString());
Review comment:
```suggestion
LOG.debug(logBuilder.toString());
```
----------------------------------------------------------------
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:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]