#1670 fix the impact on GROUP_CONCAT& FUNCTION DISTINCT (#1821)

This commit is contained in:
zhengfang.sun
2020-04-23 17:04:40 +08:00
committed by guoaomen
parent fbec6dcecc
commit 8521d7a5a6
@@ -297,6 +297,8 @@ public class PushDownVisitor extends MysqlVisitor {
}
sqlBuilder.deleteCharAt(sqlBuilder.length() - 1);
}
} else {
pushDownOrderBy.addAll(query.getGroupBys());
}
if (pushDownOrderBy.size() > 0) {
sqlBuilder.append(" ORDER BY ");