fix LongsColumnWithNulls and FloatsColumnWithNulls to override isNull in order to actually use nullValueBitmap (#5510)

This commit is contained in:
Clint Wylie 2018-03-20 16:04:08 -07:00 committed by Jihoon Son
parent 58f110f7f8
commit 885b975c95
2 changed files with 12 additions and 0 deletions

View File

@ -44,6 +44,12 @@ class FloatsColumnWithNulls extends FloatsColumn
return column.makeColumnValueSelector(offset, nullValueBitmap); return column.makeColumnValueSelector(offset, nullValueBitmap);
} }
@Override
public boolean isNull(int rowNum)
{
return nullValueBitmap.get(rowNum);
}
@Override @Override
public void inspectRuntimeShape(RuntimeShapeInspector inspector) public void inspectRuntimeShape(RuntimeShapeInspector inspector)
{ {

View File

@ -44,6 +44,12 @@ class LongsColumnWithNulls extends LongsColumn
return column.makeColumnValueSelector(offset, nullValueBitmap); return column.makeColumnValueSelector(offset, nullValueBitmap);
} }
@Override
public boolean isNull(int rowNum)
{
return nullValueBitmap.get(rowNum);
}
@Override @Override
public void inspectRuntimeShape(RuntimeShapeInspector inspector) public void inspectRuntimeShape(RuntimeShapeInspector inspector)
{ {