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

[Gandiva] Add overflow checks for decimals

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: C++ - Gandiva
    • Labels:
      None

      Description

      For decimals, overflows can occur at two places :

      1. input array can have values that are outside the bound (eg. > 38 digits)
      2. When an operation can result in overflows. eg. add of two decimals of (38, 6) can result in an overflow, if the input numbers are very large.

      In both the above cases, just verifying that an overflow occurred can be a perf overhead. We should do this based on a conf variable.

        Attachments

          Activity

            People

            • Assignee:
              pravindra Pindikura Ravindra
              Reporter:
              pravindra Pindikura Ravindra
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: