Skip to main content
Ctrl+K
PyFlink 1.20+vvr.11.7.dev0 documentation - Home PyFlink 1.20+vvr.11.7.dev0 documentation - Home
  • API Reference
  • Examples
  • API Reference
  • Examples

Section Navigation

  • PyFlink Table
    • TableEnvironment
    • Table
    • Data Types
    • Window
    • Expressions
    • User Defined Functions
    • Descriptors
    • StatementSet
    • Catalog
  • PyFlink DataStream
  • PyFlink DataFrame
  • PyFlink Common
  • API Reference
  • PyFlink Table
  • Data Types
  • pyflink.table.types.DataTypes.DECIMAL

pyflink.table.types.DataTypes.DECIMAL#

static DataTypes.DECIMAL(precision: int, scale: int, nullable: bool = True) → 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.

previous

pyflink.table.types.DataTypes.BYTES

next

pyflink.table.types.DataTypes.TINYINT

On this page
  • DataTypes.DECIMAL()

This Page

  • Show Source

Created using Sphinx 7.4.7.

Built with the PyData Sphinx Theme 0.16.1.