Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-6111

Explicit cast from expression to numeric type doesn't check overflow

    XMLWordPrintableJSON

Details

    Description

      After [1] was implemented it is still possible to obtain erroneous result, check:

      SELECT cast(100+30 as tinyint);

      result:

      -126

      [1] https://issues.apache.org/jira/browse/CALCITE-5990

      Attachments

        Issue Links

          Activity

            People

              mbudiu Mihai Budiu
              zstan Evgeny Stanilovsky
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: