Copilot commented on code in PR #55811:
URL: https://github.com/apache/arrow/pull/55811#discussion_r4717909094


##########
python/pyarrow/scalar.pxi:
##########
@@ -904,6 +904,80 @@ cdef class DurationScalar(Scalar):
             return datetime.timedelta(microseconds=sp.value // 1000)
 
 
+cdef class MonthIntervalScalar(Scalar):

Review Comment:
   Pickle round-trips for both new scalar classes raise 
`ArrowNotImplementedError`, even for nulls, because `Scalar.__reduce__` 
restores them through the unsupported Python-value conversion. For these two 
types, have the base reducer return `operator.getitem, (repeat(self, 1), 0)` to 
restore through array buffers instead, and add round-trip tests for both types.



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