jorisvandenbossche commented on a change in pull request #11765:
URL: https://github.com/apache/arrow/pull/11765#discussion_r756690709
##########
File path: python/pyarrow/_compute.pyx
##########
@@ -967,6 +967,18 @@ class MakeStructOptions(_MakeStructOptions):
self._set_options(field_names, field_nullability, field_metadata)
+cdef class _StructFieldOptions(FunctionOptions):
+ def _set_options(self, indices):
+ self.wrapped.reset(new CStructFieldOptions(indices))
+
+
+class StructFieldOptions(_StructFieldOptions):
+ def __init__(self, indices=None):
+ if indices is None:
+ indices = []
Review comment:
Ah, I see in the tests that it then returns the original struct array,
which is I suppose intended behaviour (also on the C++ side)
--
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]