hareshkh opened a new pull request, #10386: URL: https://github.com/apache/arrow-rs/pull/10386
# Which issue does this PR close? # Rationale for this change When coercing a float into a string column, `StringArrayDecoder` ran a `f32` through the integer formatter on its raw bits, so it rendered the `u32` bit pattern instead of the value (e.g. `1.5f32` → `"1069547520"`). The adjacent `f64` arm and `tape.rs` already reconstruct via `from_bits`. # What changes are included in this PR? The `F32` arm of `StringArrayDecoder` now uses `float_formatter.format_finite(f32::from_bits(n))`, matching the `f64` arm. Plus a unit test. # Are these changes tested? Yes — new `test_serialize_f32_into_string` (fails before the fix, passes after); the full `arrow-json` suite passes. # Are there any user-facing changes? Yes (bug fix): an `f32` coerced to string now renders its value, not its bit pattern. No API changes. Only reachable via `Decoder::serialize` with `coerce_primitive`; JSON text decoding was already correct. -- 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. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
