gosnowflake icon indicating copy to clipboard operation
gosnowflake copied to clipboard

Change string format for float and numeric when converting arrow types

Open SimbaGithub opened this issue 2 years ago • 0 comments

Description

This is an alternate approach to #655, instead of reverting the change that was added in #453, change the formatter used to avoid the truncation.

From https://pkg.go.dev/fmt: The default precision for %e, %f and %#g is 6; for %g it is the smallest number of digits necessary to identify the value uniquely.

Fixes #578

Checklist

  • [x] Code compiles correctly
  • [x] Run make fmt to fix inconsistent formats
  • [x] Run make lint to get lint errors and fix all of them
  • [ ] Created tests which fail without the change (if possible)
  • [x] All tests passing
  • [ ] Extended the README / documentation, if necessary

SimbaGithub avatar Oct 05 '22 21:10 SimbaGithub