Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-13220

Set isNull[i] = false for non-null decimal values in DecimalColumnVector

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.1.0
    • None
    • None
    • None

    Description

      When fixing HIVE-13083 noticed that for non-null decimal values, set function does not update the isNull state (isNull[i] should be set to false). Updating this state in DecimalColumnVector breaks all decimal vector filter expressions as the filter expression can change state on it's own.

              System.arraycopy(inputIsNull, 0, outputIsNull, 0, n);
              for(int i = 0; i != n; i++) {
      
                // The following may override a "false" null setting if an error or overflow occurs.
                DecimalUtil.addChecked(i, vector[i], value, outputColVector);
              }
      

      Attachments

        Issue Links

          Activity

            People

              prasanth_j Prasanth Jayachandran
              prasanth_j Prasanth Jayachandran
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated: