sighingnow commented on code in PR #40271:
URL: https://github.com/apache/arrow/pull/40271#discussion_r1561180712


##########
cpp/src/arrow/csv/writer.cc:
##########
@@ -222,13 +257,15 @@ class UnquotedColumnPopulator : public ColumnPopulator {
       return Status::OK();
     };
 
-    return VisitArraySpanInline<StringType>(*casted_array_->data(), 
valid_function,
-                                            null_function);
+    auto casted_array = checked_pointer_cast<StringArrayType>(array_);
+    return VisitArraySpanInline<typename StringArrayType::TypeClass>(
+        *casted_array->data(), valid_function, null_function);

Review Comment:
   Applied. Thanks!



-- 
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]

Reply via email to