Sumdiboii commented on PR #55729: URL: https://github.com/apache/arrow/pull/55729#issuecomment-7102792123
Not a maintainer, just a bystander who looked into this...the len > 0 check makes total sense to avoid passing nullptr to memcpy on empty ByteArrays. Don't you think it'd be worth adding a quick unit test in encoding_test.cc for ByteArray(0, nullptr)? Also, I saw #55685 mentions the MemoryPool* constructor bug (and PutSpaced might need this same guard too), and you might want to fill out the standard Apache Arrow PR template description so reviewers have all the context they'd need. Otherwise looks good to me...let's wait for a maintainer review though. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
