Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-4160 Vectorized Query Execution in Hive
  3. HIVE-4533

vectorized NotCol operation does not handle short-circuit evaluation for NULL propagation correctly

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • None
    • None
    • None
    • None

    Description

      See file NotCol.java in org.apache.hadoop.hive.ql.exec.vector.expressions.

      This code does not look at the selection vector so it may waste time propagating nulls if the batch has already been filtered.

      A more serious problem is that it only copies over n entries. So if a filter has been applied, nulls my not be copied over when they should.

      // handle NULLs
      if (inputColVector.noNulls)

      { outV.noNulls = true; }

      else {
      outV.noNulls = false;
      if (inputColVector.isRepeating)

      { outV.isNull[0] = inputColVector.isNull[0]; }

      else

      { System.arraycopy(inputColVector.isNull, 0, outV.isNull, 0, n); }

      }

      Attachments

        Issue Links

          Activity

            People

              jnp Jitendra Nath Pandey
              ehans Eric N. Hanson
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: