gosnowflake
gosnowflake copied to clipboard
Change string format for float and numeric when converting arrow types
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