emkornfield commented on a change in pull request #11302:
URL: https://github.com/apache/arrow/pull/11302#discussion_r722775423



##########
File path: cpp/src/arrow/python/arrow_to_pandas.cc
##########
@@ -1097,6 +1081,40 @@ struct ObjectWriterVisitor {
     return Status::OK();
   }
 
+  template <typename Type>
+  enable_if_t<std::is_same<Type, MonthDayNanoIntervalType>::value, Status> 
Visit(
+      const Type& type) {
+    OwnedRef args(PyTuple_New(0));
+    OwnedRef kwargs(PyDict_New());
+    RETURN_IF_PYERROR();
+    auto to_date_offset = [&](const MonthDayNanoIntervalType::MonthDayNanos& 
interval,
+                              PyObject** out) {
+      DCHECK(internal::BorrowPandasDataOffsetType() != nullptr);
+      // TimeDelta objects do not add nanoseconds component to timestamp.
+      // so convert microseconds and remainder to preserve data
+      // but give users more expected results.

Review comment:
       Rephrased (had the wrong time should have been DateOffset) and 
referenced the bug.




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