pitrou commented on code in PR #35197:
URL: https://github.com/apache/arrow/pull/35197#discussion_r1196521220
##########
cpp/src/arrow/type.h:
##########
@@ -1905,6 +1935,15 @@ class ARROW_EXPORT FieldRef : public
util::EqualityComparable<FieldRef> {
}
return match.Get(root).ValueOrDie();
}
+ template <typename T>
+ Result<GetType<T>> GetOneOrNoneFlattened(const T& root,
+ MemoryPool* pool = NULLPTR) const {
+ ARROW_ASSIGN_OR_RAISE(auto match, FindOneOrNone(root));
+ if (match.empty()) {
+ return static_cast<GetType<T>>(NULLPTR);
+ }
+ return match.GetFlattened(root, pool).ValueOrDie();
Review Comment:
Same here.
--
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]