commit | 966a8040151ebe6276d14ee0c6e98b085daab887 | [log] [tgz] |
---|---|---|
author | Matt Topol <zotthewizard@gmail.com> | Mon Apr 24 20:36:06 2023 -0400 |
committer | GitHub <noreply@github.com> | Mon Apr 24 20:36:06 2023 -0400 |
tree | 1be3f7ebada2b4a24c8a620c35e972429cb3de49 | |
parent | 5de56928e0fe43f02005552eee058de57ffb2682 [diff] |
GH-35310: [Go] Incorrect value decimal128 from string (#35311) ### Rationale for this change Fix edge case of rounding when parsing a decimal128 value from string with a high precision. ### What changes are included in this PR? Adding a simple 0.5 rounding based on the signbit before we truncate the value to an integer. ### Are these changes tested? Yes, an edge case test case was added. ### Are there any user-facing changes? Some values that were previously incorrect will now be correct. * Closes: #35310 Authored-by: Matt Topol <zotthewizard@gmail.com> Signed-off-by: Matt Topol <zotthewizard@gmail.com>
Apache Arrow is a development platform for in-memory analytics. It contains a set of technologies that enable big data systems to process and move data fast.
Major components of the project include:
Arrow is an Apache Software Foundation project. Learn more at arrow.apache.org.
The reference Arrow libraries contain many distinct software components:
The official Arrow libraries in this repository are in different stages of implementing the Arrow format and related features. See our current feature matrix on git main.
Please read our latest project contribution guide.
Even if you do not plan to contribute to Apache Arrow itself or Arrow integrations in other projects, we'd be happy to have you involved: