Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-61

[Java] Method can return the value bigger than long MAX_VALUE

    XMLWordPrintableJSON

Details

    Description

      Method org.apache.drill.exec.util.DecimalUtility.adjustScaleMultiply(long input, int factor) can return the value bigger than long max value.
      For example by comparison two decimal18 values 9223372036854775807 and 0.001. To adjust first value scale this method should return 9223372036854775807 * 1000 - bigger than long max value.

      Class DecimalUtility.java will be a part of org.apache.arrow after renaming described in DRILL-4455 Depend on Apache Arrow for Vector and Memory

      Attachments

        Issue Links

          Activity

            People

              tianchen92 Ji Liu
              vitalii Vitalii Diravka
              Votes:
              0 Vote for this issue
              Watchers:
              7 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 - 1h
                  1h