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)
else {
outV.noNulls = false;
if (inputColVector.isRepeating)
else
{ System.arraycopy(inputColVector.isNull, 0, outV.isNull, 0, n); }}
Attachments
Issue Links
- is part of
-
HIVE-4534 IsNotNull and NotCol incorrectly handle nulls.
- Resolved