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

   ### What would you like to be improved?
   
   In clients/cli/src/main/java/org/apache/gravitino/cli/ParseType.java allow 
decimal types with  a single precision argument. e.g "decimal(10)"
   
   Unit test to help out:
   ```
     @Test
     public void testParseTypeDecimalWithPrecisionOnly() {
       Type type = ParseType.toType("decimal(10)");
       assertThat(type, instanceOf(Types.DecimalType.class));
       assertEquals(10, ((Types.DecimalType) type).precision());
       assertEquals(0, ((Types.DecimalType) type).scale());
     }
   ```
   
   ### How should we improve?
   
   Add this and default the scale 0. Also add some unit tests.


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