Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-24403 Improve behaviour of CAST
  3. FLINK-24414

Casting a decimal to a String doesn't do left zero padding

    XMLWordPrintableJSON

Details

    Description

      CAST(a AS STRING) where a is a DECIMAL(5.3) with value 9.87 results in

      9.870 so we only get right 0 padding to fill in the fractional digits.

       

      Postgres and Oracle also don't do left zero padding.

      Attachments

        Issue Links

          Activity

            People

              matriv Marios Trivyzas
              matriv Marios Trivyzas
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: