Skip to content

Conversation

@maartenbreddels
Copy link
Contributor

@maartenbreddels maartenbreddels commented Nov 10, 2020

No description provided.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I accidentally forgot the +1 here, and everything worked. Does CI include valgrind, and should it pick this up?

Copy link
Member

Choose a reason for hiding this comment

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

The +1 should not be necessary. This is the number of values appended, not the number of offsets.

@github-actions
Copy link

@maartenbreddels
Copy link
Contributor Author

Looking at the implementation of VisitArrayDataInline, which is quite similar to what is being done in FillNullFunctor<Type, enable_if_t<is_number_type<Type>::value>>, I don't see much room for improvement.

Copy link
Member

@pitrou pitrou left a comment

Choose a reason for hiding this comment

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

Just a couple comments. Thank you for this PR!

Copy link
Member

Choose a reason for hiding this comment

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

Instead of calling MayHaveNulls, just compute the null count and check it here.

@maartenbreddels
Copy link
Contributor Author

@pitrou i think this is ready to go/review.

Copy link
Member

@pitrou pitrou 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 merge. Thank you @maartenbreddels !

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