llama90 commented on code in PR #41894:
URL: https://github.com/apache/arrow/pull/41894#discussion_r1635735814
##########
cpp/src/arrow/util/formatting.h:
##########
@@ -652,5 +654,82 @@ class StringFormatter<MonthDayNanoIntervalType> {
}
};
+template <>
+class StringFormatter<BaseListScalar> {
+ public:
+ explicit StringFormatter(const DataType* type) : type_(type) {}
+
+ using value_type = BaseListScalar;
+
+ template <typename Appender>
+ Return<Appender> operator()(const BaseListScalar& value, Appender&& append) {
+ std::stringstream ss;
+ ss << type_->ToString() << "[";
+ for (int64_t i = 0; i < value.value->length(); i++) {
+ if (i > 0) ss << ", ";
+ auto item = value.value->GetScalar(i);
Review Comment:
I think that’s a good idea. That will help me process and complete the
related PR. Let’s proceed with that.
Additionally, your code will provide valuable insights.
Thank you for your help.
--
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]