mirror of
https://github.com/actiontech/dble.git
synced 2026-04-25 23:59:38 -05:00
ATK-1244
This commit is contained in:
@@ -167,7 +167,7 @@ public final class PlanUtil {
|
||||
Item func = sel.cloneStruct();
|
||||
if (sel.getReferTables().isEmpty()) {
|
||||
func.setPushDownName(null);
|
||||
sel.setPushDownName(func.getItemName());
|
||||
sel.setPushDownName(sel.getAlias() != null ? sel.getAlias() : func.getItemName());
|
||||
return func;
|
||||
}
|
||||
if (!subQueryOpt && (func.isWithSumFunc())) {
|
||||
@@ -180,7 +180,7 @@ public final class PlanUtil {
|
||||
}
|
||||
refreshReferTables(func);
|
||||
func.setPushDownName(null);
|
||||
sel.setPushDownName(func.getItemName());
|
||||
sel.setPushDownName(sel.getAlias() != null ? sel.getAlias() : func.getItemName());
|
||||
return func;
|
||||
} else {
|
||||
throw new MySQLOutPutException(ErrorCode.ER_OPTIMIZER, "", "not supported!");
|
||||
|
||||
Reference in New Issue
Block a user