Commits


Kartik Verma authored and GitHub committed 7b62460551f
GH-40563: [Go] Unable to JSON marshal float64 arrays which contain a NaN value (#41109) ### Rationale for this change From this [issue](https://github.com/apache/arrow/issues/40563#issuecomment-2043464834). ### What changes are included in this PR? MarshalJSON() is changed for Float32, Float64 to handle NaN, +Inf and -Inf values. I was only able to handle NaN for Float16. UnmarshalJSON() was already handling NaN, +Inf and -Inf in the right way. ### Are these changes tested? These changes are tested. Tests are included in those files where I find it was logically appropriate to do so. ### Are there any user-facing changes? They will be able to handle corner values for Float32, Float64 now. * GitHub Issue: #40563 Lead-authored-by: verma-kartik <kartikv.vero058@gmail.com> Co-authored-by: work-vermakartik <workatkartikverma@gmail.com> Co-authored-by: Matt Topol <zotthewizard@gmail.com> Signed-off-by: Matt Topol <zotthewizard@gmail.com>