zeroshade commented on a change in pull request #11359: URL: https://github.com/apache/arrow/pull/11359#discussion_r741434777
########## File path: go/arrow/array/numeric.gen.go ########## @@ -750,6 +962,22 @@ func (a *Timestamp) setData(data *Data) { } } +func (a *Timestamp) getOneForMarshal(i int) interface{} { + if a.IsNull(i) { + return nil + } + return a.values[i].ToTime(a.DataType().(*arrow.TimestampType).Unit).Format("2006-01-02 15:04:05.999999999") Review comment: using `9` there will leave out trailing zeros from the resulting string so this will handle whatever level of precision is provided rather than explicitly padding to a specific precision level. -- 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