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

TIMESTAMP/TIMESTAMP_LTZ Pad with trailing zeros for fractional seconds depending on the precision specified

    XMLWordPrintableJSON

Details

    Description

      Should we pad with trailing zeros for the fractional second part?

      e.g.:

       

      CAST(CAST('2021-12-13 11:22:33.123456' AS TIMESTAMP(9) AS STRING)

      Should it return:

       

      2021-12-13 11:22:33.123456

      or:

      2021-12-13 11:22:33.123456000

      ?

       

       

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: