justinmclean opened a new issue, #8056:
URL: https://github.com/apache/gravitino/issues/8056

   ### What would you like to be improved?
   
   The output of toString in 
api/src/main/java/org/apache/gravitino/rel/expressions/FunctionExpression.java 
is a little odd and outputs things in the form "func([a,b)]" when "func(a,b)" 
would be expected.
   
   Here are some tests:
   ```
     @Test
     public void testToStringWithArguments() {
       FunctionExpression expr =
           FunctionExpression.of("func", NamedReference.field("a"), 
NamedReference.field("b"));
       assertEquals("func(a, b)", expr.toString());
     }
   
     @Test
     public void testToStringWithoutArguments() {
       FunctionExpression expr = FunctionExpression.of("func");
       assertEquals("func()", expr.toString());
     }
   ```
   
   ### How should we improve?
   
   Fix the output.


-- 
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]

Reply via email to