Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-23192

Sql. Arithmetic operations failed with "out of range" exception.

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • 3.0.0-beta1
    • 3.0
    • sql

    Description

              sql("CREATE TABLE t(key int primary key, c1 tinyint, c2 tinyint)");
              sql("INSERT INTO t VALUES(1, 100, 100)");
              sql("SELECT c1 + c2 from t");
      // the same:
              sql("SELECT c1 * c2 from t");
      // will fail but need different insertion: INSERT INTO t VALUES(1, -100, 100)
              sql("SELECT c1 - c2 from t");
      

      Failed with :
      "TINYINT out of range" exception, seems the same for int16 and int 32 types

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            zstan Evgeny Stanilovsky
            zstan Evgeny Stanilovsky
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 4.5h
                4.5h

                Slack

                  Issue deployment