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

Avoid scientific notation for DOUBLE to STRING

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • Table SQL / Runtime
    • None

    Description

      Flink currently uses Java semantics for some casts.

      When executing:

      SELECT CAST(CAST('19586232024.0' AS DOUBLE) AS STRING);
      

      Leads to

      1.9586232024E10
      

      However, other vendors such as Postgres or MySQL return 19586232024.

      We should reconsider this behavior for consistency.

      Attachments

        Activity

          People

            Unassigned Unassigned
            twalthr Timo Walther
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: