justinmclean opened a new issue, #8322:
URL: https://github.com/apache/gravitino/issues/8322
### What would you like to be improved?
ExpressionUtil.parseSortOrder incorrectly reads the sort direction so “ASC”
and “DESC” are not interpreted correctly.
You can add this code to testSortOrderFiledToExpression to show this:
```
sortOrderFiled = List.of("f1 ASC");
sortOrders = ExpressionUtil.sortOrderFiledToExpression(sortOrderFiled);
Assertions.assertEquals(1, sortOrders.length);
Assertions.assertEquals(SortOrders.ascending(NamedReference.field("f1")),
sortOrders[0]);
```
### How should we improve?
In parseSortOrder in
trino-connector/trino-connector/src/main/java/org/apache/gravitino/trino/connector/catalog/iceberg/ExpressionUtil.java
change teh group from 1 to 2.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]