alippai opened a new pull request #406: URL: https://github.com/apache/arrow-rs/pull/406
# Which issue does this PR close? <!--- We generally require a GitHub issue to be filed for all bug fixes and enhancements and this helps us generate change logs for our releases. You can link an issue to this PR using the GitHub syntax. For example `Closes #123` indicates that this PR will close issue #123. --> Closes #405. # Rationale for this change A simple CSV serializer for Decimals and matching debug format improvement. # What changes are included in this PR? Decimal -> string conversion. # Are there any user-facing changes? The debug display of DecimalArray(precision:5, scale:2) is changed from: ``` 12345 ``` to ``` 123.45 ``` Two things to consider for any reviewer: 1. I might be wrong with `try_into()` and ` as i32` and other cast. I'm new to Rust and I don't know the exact implications of my introduced changes. 2. For integer-like decimals I still write `1.0` instead of `1`. This was a subjective decision, I don't have strong feelings about it. -- 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. For queries about this service, please contact Infrastructure at: [email protected]
