zeroshade commented on a change in pull request #11359: URL: https://github.com/apache/arrow/pull/11359#discussion_r741435168
########## File path: go/arrow/array/numeric.gen.go ########## @@ -817,6 +1045,22 @@ func (a *Time32) setData(data *Data) { } } +func (a *Time32) getOneForMarshal(i int) interface{} { + if a.IsNull(i) { + return nil + } + return a.values[i].ToTime(a.DataType().(*arrow.Time32Type).Unit).Format("15:04:05.999999999") Review comment: using the `9`'s there will drop any trailing zeros so that it will only format it to the precision required to represent the value. -- 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