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


##########
python/pyarrow/src/arrow/python/datetime.cc:
##########
@@ -642,6 +696,47 @@ struct PyListAssigner {
 
 }  // namespace
 
+Result<PyObject*> MonthIntervalArrayToPyList(const MonthIntervalArray& array) {
+  OwnedRef out_list(PyList_New(array.length()));
+  RETURN_IF_PYERROR();
+  PyListAssigner out_objects(out_list.obj());
+  auto& interval_array = arrow::internal::checked_cast<const 
MonthIntervalArray&>(array);
+  RETURN_NOT_OK(internal::WriteArrayObjects(
+      interval_array,

Review Comment:
   0f54a4d05d53407ccdc72c6faabff6a2bf58a0a9



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