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

Casting to a "narrower" type doesn't throw exception but follows Java overflow

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      Ideally we should provide config option to be able to keep current behaviour where such casts follow the standard Java overflow, but in order to avoid "hidden" erroneous behaviour the user should be able to have an error thrown when an overflow happens. So basically range checks for each type like TINYINT, SMALLINT, INT, FLOAT should be enforced. Keep in mind of such range checks for every conversion would add performance overhead.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated: