Only checks for partition batch pruning flag once
Bug fix: should call setNullAt when field value is null to avoid NPE