You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Eric Hanson (JIRA)" <ji...@apache.org> on 2013/05/10 02:03:16 UTC

[jira] [Created] (HIVE-4533) vectorized NotNull operation does not handle short-circuit evaluation for NULL propagation correctly

Eric Hanson created HIVE-4533:
---------------------------------

             Summary: vectorized NotNull operation does not handle short-circuit evaluation for NULL propagation correctly
                 Key: HIVE-4533
                 URL: https://issues.apache.org/jira/browse/HIVE-4533
             Project: Hive
          Issue Type: Sub-task
            Reporter: Eric Hanson


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);
      }
    }



--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira