edponce commented on code in PR #12055: URL: https://github.com/apache/arrow/pull/12055#discussion_r849621397
########## cpp/src/arrow/chunked_array.cc: ########## @@ -44,18 +45,20 @@ class MemoryPool; ChunkedArray::ChunkedArray(ArrayVector chunks, std::shared_ptr<DataType> type) : chunks_(std::move(chunks)), type_(std::move(type)) { - length_ = 0; - null_count_ = 0; - if (type_ == nullptr) { ARROW_CHECK_GT(chunks_.size(), 0) << "cannot construct ChunkedArray from empty vector and omitted type"; type_ = chunks_[0]->type(); } + + length_ = 0; + null_count_ = 0; Review Comment: I found [this PR's conversation](https://github.com/apache/arrow/pull/3267) touches on this topic. -- 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: github-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org