pitrou commented on code in PR #40265:
URL: https://github.com/apache/arrow/pull/40265#discussion_r1505826814


##########
python/pyarrow/types.py:
##########
@@ -41,6 +41,7 @@
                    _INTERVAL_TYPES)
 _UNION_TYPES = {lib.Type_SPARSE_UNION, lib.Type_DENSE_UNION}
 _NESTED_TYPES = {lib.Type_LIST, lib.Type_FIXED_SIZE_LIST, lib.Type_LARGE_LIST,
+                 lib.Type_LIST_VIEW, lib.Type_LARGE_LIST_VIEW,
                  lib.Type_STRUCT, lib.Type_MAP} | _UNION_TYPES

Review Comment:
   There is a  `is_nested` function in C++, perhaps we can use it instead of 
relying on hand-maintained constants on the Python side? Same for some of the 
other predicates actually (I see that `_INTERVAL_TYPES` is only holding a 
single kind of interval?)



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