[improvement](chat) Fix get metrics error in queryReqConverter (#547)

This commit is contained in:
lexluo09
2023-12-19 14:29:18 +08:00
committed by GitHub
parent bb1001677d
commit c68df24375
2 changed files with 6 additions and 0 deletions

View File

@@ -289,6 +289,7 @@ public class SqlParserSelectHelper {
Set<FieldExpression> orderByFieldExpressions = getOrderByFields(plainSelect);
Set<String> collect = orderByFieldExpressions.stream()
.map(fieldExpression -> fieldExpression.getFieldName())
.filter(Objects::nonNull)
.collect(Collectors.toSet());
result.addAll(collect);
}