wForget opened a new pull request, #2784: URL: https://github.com/apache/uniffle/pull/2784
### What changes were proposed in this pull request? Calculate the Spark UI compression ratio using floating-point division: - Return `0.0` when the compressed shuffle size is zero. - Convert `uncompressedShuffleBytes` to `Double` before division. ### Why are the changes needed? The compression ratio was previously calculated by dividing two `Long` values. Scala therefore performed integer division and discarded the fractional part. For example, a compression ratio of `150 / 100` was calculated as `1` and displayed as `1.0` instead of `1.5`. Fix: #2783 ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
