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/27 06:45:26 UTC
[I] [Improvement] Improve ParseType.parseBasicType so it accepts whitespace around numeric parameters [gravitino]
justinmclean opened a new issue, #8301:
URL: https://github.com/apache/gravitino/issues/8301
### What would you like to be improved?
Improve ParseType.parseBasicType so it accepts whitespace around numeric parameters.
Here's two tests to illustrate what is needed:
```
@Test
public void testParseTypeDecimalWithSpaces() {
Type type = ParseType.toType("decimal(10, 5)");
assertThat(type, instanceOf(Types.DecimalType.class));
assertEquals(10, ((Types.DecimalType) type).precision());
assertEquals(5, ((Types.DecimalType) type).scale());
}
@Test
public void testParseTypeVarcharWithSpaces() {
Type type = ParseType.toType("varchar( 10 )");
assertThat(type, instanceOf(Types.VarCharType.class));
assertEquals(10, ((Types.VarCharType) type).length());
}
```
### How should we improve?
as above
--
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] Improve ParseType.parseBasicType so it accepts whitespace around numeric parameters [gravitino]
Posted by "playasim (via GitHub)" <gi...@apache.org>.
playasim commented on issue #8301:
URL: https://github.com/apache/gravitino/issues/8301#issuecomment-3229007225
Hi @justinmclean, would you mind assign the task to me? I would like to fix it.
--
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] Improve ParseType.parseBasicType so it accepts whitespace around numeric parameters [gravitino]
Posted by "justinmclean (via GitHub)" <gi...@apache.org>.
justinmclean closed issue #8301: [Improvement] Improve ParseType.parseBasicType so it accepts whitespace around numeric parameters
URL: https://github.com/apache/gravitino/issues/8301
--
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] Improve ParseType.parseBasicType so it accepts whitespace around numeric parameters [gravitino]
Posted by "justinmclean (via GitHub)" <gi...@apache.org>.
justinmclean commented on issue #8301:
URL: https://github.com/apache/gravitino/issues/8301#issuecomment-3230279516
Sure, thanks for offering to help.
--
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