[chore](log)Move non-user-friendly error message to be.WARNING (#22315)

Move non-user-friendly error message to be.WARNING
This commit is contained in:
zclllyybb
2023-07-28 13:15:25 +08:00
committed by GitHub
parent 2d538d5959
commit ad080c691f
7 changed files with 14 additions and 11 deletions

View File

@ -684,13 +684,15 @@ public class ScalarType extends Type {
case DECIMAL64:
case DECIMAL128:
case DATETIMEV2: {
Preconditions.checkArgument(precision >= scale);
Preconditions.checkArgument(precision >= scale,
String.format("given precision %d is out of scale bound %d", precision, scale));
scalarType.setScale(scale);
scalarType.setPrecision(precision);
break;
}
case TIMEV2: {
Preconditions.checkArgument(precision >= scale);
Preconditions.checkArgument(precision >= scale,
String.format("given precision %d is out of scale bound %d", precision, scale));
scalarType.setScale(scale);
scalarType.setPrecision(precision);
break;