Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-6710

Disallow negative scale for VarDecimal

    XMLWordPrintableJSON

Details

    Description

      Query is:
      select cast('999999999999999999' as decimal(18,0)) + cast('9999999999999999999999999999999999999' as decimal(38,0)) from data limit 1

      This is the error I get when my test program calls SQLExecDirect:

      The driver reported the following diagnostics whilst running SQLExecDirect

      HY000:1:40140:[MapR][Support] (40140) Scale can't be less than zero.

      Attachments

        Issue Links

          Activity

            People

              volodymyr Vova Vysotskyi
              rhou Robert Hou
              Sorabh Hamirwasia Sorabh Hamirwasia
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: