File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
dingo-common/src/main/java/io/dingodb/common/table Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 2424import io .dingodb .common .meta .SchemaState ;
2525import io .dingodb .common .type .DingoType ;
2626import io .dingodb .common .type .DingoTypeFactory ;
27+ import io .dingodb .common .type .scalar .DecimalType ;
2728import lombok .Builder ;
2829import lombok .EqualsAndHashCode ;
2930import lombok .Getter ;
@@ -166,7 +167,12 @@ public boolean isPrimary() {
166167
167168 @ JsonIgnore
168169 public DingoType getType () {
169- return DingoTypeFactory .INSTANCE .fromName (type , elementType , nullable );
170+ DingoType dingoType = DingoTypeFactory .INSTANCE .fromName (type , elementType , nullable );
171+ if (dingoType instanceof DecimalType ) {
172+ ((DecimalType ) dingoType ).setPrecision (precision );
173+ ((DecimalType ) dingoType ).setScale (scale );
174+ }
175+ return dingoType ;
170176 }
171177
172178 @ JsonIgnore
You can’t perform that action at this time.
0 commit comments