mapleFU commented on code in PR #43760:
URL: https://github.com/apache/arrow/pull/43760#discussion_r1734676661
##########
cpp/src/arrow/compute/light_array_internal.cc:
##########
@@ -235,6 +237,7 @@ void ResizableArrayData::Clear(bool release_buffers) {
Status ResizableArrayData::ResizeFixedLengthBuffers(int num_rows_new) {
ARROW_DCHECK(num_rows_new >= 0);
+ ARROW_DCHECK(data_type_ != nullptr);
Review Comment:
> Why do we need this (and several other similar) check? I think we can
assume that these functions will always be called after an Init call, where
data_type_ would be set to a non-null.
I just `DCHECK(data_type_)` to `DCHECK it's initialized`
--
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]