rtpsw commented on code in PR #13783:
URL: https://github.com/apache/arrow/pull/13783#discussion_r939667868
##########
cpp/src/arrow/type_traits.h:
##########
@@ -942,6 +991,42 @@ static inline bool is_primitive(Type::type type_id) {
return false;
}
+/// \brief Check for a primitive-like type
+///
+/// \param[in] type_id the type-id to check
+/// \return whether type-id is a primitive-like type one
+static inline bool is_primitive_like(Type::type type_id) {
Review Comment:
Side note: the existing (pre-PR) code has an `is_nested` predicate, though
it is not the complement of the function discussed here, e.g., due to timestamp
and interval types.
--
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]