pyflink.table.types.DataTypes.DECIMAL#
- static DataTypes.DECIMAL(precision: int, scale: int, nullable: bool = True) pyflink.table.types.DecimalType [source]#
Data type of a decimal number with fixed precision and scale.
- Parameters
precision – the number of digits in a number. It must have a value between 1 and 38 (both inclusive).
scale – the number of digits on right side of dot. It must have a value between 0 and precision (both inclusive).
nullable – boolean, whether the type can be null (None) or not.
Note
The precision must be 38 and the scale must be 18 currently.