You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2021/11/25 09:02:01 UTC

[GitHub] [arrow] pitrou commented on a change in pull request #11765: ARROW-14765: [Python] StructFieldOptions not exposed

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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org