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

Explicit cast to DECIMAL types do not check for overflow

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Duplicate
    • 1.35.0
    • 1.38.0
    • core
    • None

    Description

      This is a follow-up from CALCITE-5990
      That issue dealt with integers and floating point.
      This issue is about casts to DECIMAL in which the cast value exceeds the scale of the target result. Apparently Calcite does not handle such casts properly. There are multiple disabled SqlOperatorTests for this condition.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mbudiu Mihai Budiu
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: