Surajsuthar opened a new pull request, #12462:
URL: https://github.com/apache/arrow-rs/pull/12462

   
   # Which issue does this PR close?
   
   <!--
   It is not necessary to raise an issue, but it is encouraged if it is a 
non-trivial
   enhancement/bug.
   
   If this PR relates to an existing issue, but does not fully resolve it, 
please change
   the wording below from "Closes #NNN" to "Relates to #NNN" or "Part of #NNN" 
to avoid
   false closing an issue.
   -->
   
   - Closes #11397 
   
   # Rationale for this change
   
   - Avoid intermediate String allocations in the correctly rounded fallback 
path.
   - Use a stack-backed decimal buffer with lexical-core parsing.
   - Improve exact-boundary handling for f32 and f64.
   
   # What changes are included in this PR?
   
   - Optimize decimal-to-floating-point casts in arrow-cast.
   - PR implemented [https://github.com/duckdb/duckdb/pull/22874](duckdb) 
decimal casting  to float 32/64 avoiding previous parsing through string 
   
   # Are these changes tested?
   
   yes `cargo test -p arrow-cast`
   
   <!--
   We typically require tests for all PRs in order to:
   1. Prevent the code from being accidentally broken by subsequent changes
   2. Serve as another way to document the expected behavior of the code
   
   If tests are not included in your PR, please explain why (for example, are 
they
   covered by existing tests, if so identify these tests)?
   
   If this PR claims a performance improvement, please include evidence such as
   benchmark results.
   
   If new benchmarks are needed, add them as the first commit of this PR so the
   benchmark runner can use that commit as the baseline. See the performance
   guidance in CONTRIBUTING.md.
   
   DO NOT simply paste a list of commands ran to verify the code; this is what 
our
   CI is for and it pollutes the PR. ONLY explain if testing was included with 
this
   PR, or why it wasn't.
   -->
   
   # Are there any significant user-facing changes?
   
   <!--
   Significant user-facing changes include:
   - Breaking public API change
   - Significant change to existing functionality (e.g. function returns 
something different)
   
   These need to be explicitly called out to ensure we have proper 
documentation if
   required and to ensure we follow proper semantic versioning.
   
   DO NOT restate the changes of this PR; if a bug was fixed and already 
explained
   above, we don't need this to be restated as a user-facing change.
   -->
   
   # AI usage disclosure
   
   <!--
   If you used AI tools, briefly describe what they helped generate.
   See 
https://github.com/apache/arrow-rs/blob/main/CONTRIBUTING.md#ai-generated-submissions.
   Delete this section if you did not use AI tools.
   -->
   


-- 
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]

Reply via email to