iceberg-js
    Preparing search index...

    Function parseDecimalType

    • Parse a decimal type string into its components. Handles any whitespace formatting (e.g., "decimal(10,2)", "decimal(10, 2)", "decimal( 10 , 2 )").

      Parameters

      • type: string

        The type string to parse

      Returns { precision: number; scale: number } | null

      Object with precision and scale, or null if not a valid decimal type