You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gravitino.apache.org by "justinmclean (via GitHub)" <gi...@apache.org> on 2025/08/28 03:05:52 UTC

[I] [Improvement] ExpressionUtil.parseSortOrder incorrectly reads the sort direction so “ASC” and “DESC” are not interpreted correctly [gravitino]

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: commits-unsubscribe@gravitino.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Improvement] ExpressionUtil.parseSortOrder incorrectly reads the sort direction so “ASC” and “DESC” are not interpreted correctly [gravitino]

Posted by "yonghyeonpark (via GitHub)" <gi...@apache.org>.
yonghyeonpark commented on issue #8322:
URL: https://github.com/apache/gravitino/issues/8322#issuecomment-3232734618

   Hi, I’d like to take this issue.


-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Improvement] ExpressionUtil.parseSortOrder incorrectly reads the sort direction so “ASC” and “DESC” are not interpreted correctly [gravitino]

Posted by "justinmclean (via GitHub)" <gi...@apache.org>.
justinmclean commented on issue #8322:
URL: https://github.com/apache/gravitino/issues/8322#issuecomment-3233172569

   All yours, if you need any help, just ask.


-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Improvement] ExpressionUtil.parseSortOrder incorrectly reads the sort direction so “ASC” and “DESC” are not interpreted correctly [gravitino]

Posted by "diqiu50 (via GitHub)" <gi...@apache.org>.
diqiu50 closed issue #8322: [Improvement] ExpressionUtil.parseSortOrder incorrectly reads the sort direction so “ASC” and “DESC” are not interpreted correctly
URL: https://github.com/apache/gravitino/issues/8322


-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org