Skip to content

Conversation

@xhochy
Copy link
Member

@xhochy xhochy commented Feb 8, 2017

No description provided.

null_count_(null_count),
null_bitmap_(null_bitmap),
null_bitmap_data_(nullptr) {
if (null_count_ == 0) { null_bitmap_ = nullptr; }
Copy link
Member Author

@xhochy xhochy Feb 8, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually first thought this might be the issue (i.e. using a non-valid bitmap) but it wasn't. Still for null_count == 0 we don't need it and leaving out the reference even makes the lazy branch of null_count() a lot faster.

Copy link
Member

@wesm wesm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1, will wait for the build to pass

if (null_count_ < 0) {
if (null_bitmap_) {
null_count_ = CountSetBits(null_bitmap_data_, offset_, length_);
null_count_ = length_ - CountSetBits(null_bitmap_data_, offset_, length_);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oops, thanks for the catch

@wesm
Copy link
Member

wesm commented Feb 8, 2017

Green build here: https://travis-ci.org/xhochy/arrow

@asfgit asfgit closed this in 4440e40 Feb 8, 2017
@xhochy xhochy deleted the ARROW-543 branch March 7, 2017 16:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants