We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0ae5b66 commit 9697e69Copy full SHA for 9697e69
cpp/src/arrow/array/builder_nested.cc
@@ -100,7 +100,7 @@ Status ListBuilder::FinishInternal(std::shared_ptr<ArrayData>* out) {
100
}
101
102
// If the type has not been specified in the constructor, infer it
103
- if (!std::dynamic_pointer_cast<ListType>(type_)->value_type()) {
+ if (!arrow::internal::checked_cast<ListType&>(*type_).value_type()) {
104
type_ = std::static_pointer_cast<DataType>(
105
std::make_shared<ListType>(value_builder_->type()));
106
0 commit comments