pitrou commented on a change in pull request #11765:
URL: https://github.com/apache/arrow/pull/11765#discussion_r756691328
##########
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:
It is, but that's not useful as a default behaviour, so the argument
should still be mandatory IMHO.
--
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]