edponce commented on a change in pull request #11147:
URL: https://github.com/apache/arrow/pull/11147#discussion_r713203478
##########
File path: python/pyarrow/_compute.pyx
##########
@@ -690,99 +677,96 @@ class CastOptions(_CastOptions):
cdef class _ElementWiseAggregateOptions(FunctionOptions):
- def _set_options(self, bint skip_nulls):
+ def _set_options(self, skip_nulls):
self.wrapped.reset(new CElementWiseAggregateOptions(skip_nulls))
class ElementWiseAggregateOptions(_ElementWiseAggregateOptions):
- def __init__(self, bint skip_nulls=True):
+ def __init__(self, *, skip_nulls=True):
self._set_options(skip_nulls)
cdef CRoundMode unwrap_round_mode(round_mode) except *:
- if round_mode == 'down':
+ # TODO: Cython 0.29.x does not supports C++ scoped enums as dictionary
+ # values because they do not resolve to integers, so we use if-elses.
+ # Cython 3 fully supports C++ scoped enums resolving to integers, refer to
+ #
https://cython.readthedocs.io/en/latest/src/userguide/wrapping_CPlusPlus.html#scoped-enumerations
+ if round_mode == "down":
Review comment:
I removed comments and [created a JIRA for
this.](https://issues.apache.org/jira/browse/ARROW-14058)
--
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]