Skip to content

Conversation

@wesm
Copy link
Member

@wesm wesm commented Jul 16, 2017

I also refactored BinaryBuilder to not inherit from ListBuilder, which is a bit cleaner. I added a draft of ARROW-507; it needs a unit test and to handle the case where some passed offsets are null (so they need to be sanitized)

wesm added 5 commits July 16, 2017 17:32
Binary, String. Add basic ListArray::FromArrays method, add Python binding

Change-Id: I17435c925c070b5e3ca2e76a286c0e810a23d25c
Change-Id: I1271b0b7c13106920fcdf8bd01270795a7739b88
Change-Id: Ide8c2db8d9dd740832c46cdb99a62f8ea21f2fe6
Change-Id: I569f34b7cc108a4078b773eda710605edd32fc6f
Change-Id: Ifdbb610cce9b34c5c3ff9acf9db519fcffacb0da
BinaryBuilder::BinaryBuilder(MemoryPool* pool) : BinaryBuilder(pool, binary()) {}

Status BinaryBuilder::Init(int64_t elements) {
DCHECK_LT(elements, std::numeric_limits<int64_t>::max());
Copy link
Member

Choose a reason for hiding this comment

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

This sounds very fishy. Should this be std::numeric_limits<int32_t>::max()?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, that seems better. Copy-paste artifact (also fixed this in ListBuilder)

Change-Id: I6b41e5e43004ea716450da5cf9ba95a1af62a19b
Copy link
Member

@xhochy xhochy left a comment

Choose a reason for hiding this comment

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

+1, LGTM

@asfgit asfgit closed this in 1541a08 Jul 17, 2017
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