emkornfield commented on a change in pull request #11359: URL: https://github.com/apache/arrow/pull/11359#discussion_r741378941
########## File path: go/arrow/array/numeric.gen.go ########## @@ -1085,6 +1377,22 @@ func (a *Duration) setData(data *Data) { } } +func (a *Duration) getOneForMarshal(i int) interface{} { + if a.IsNull(i) { + return nil + } + return fmt.Sprint(time.Duration(a.values[i]) * a.DataType().(*arrow.DurationType).Unit.Multiplier()) Review comment: this logic is a little opaque to me, would you mind adding a comment on intended output. -- 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-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org