wForget opened a new issue, #2783:
URL: https://github.com/apache/uniffle/issues/2783

   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   
   
   ### Search before asking
   
   - [x] I have searched in the 
[issues](https://github.com/apache/incubator-uniffle/issues?q=is%3Aissue) and 
found no similar issues.
   
   
   ### Describe the bug
   
   The compression ratio displayed on the Uniffle tab in Spark UI is calculated 
by dividing `uncompressedShuffleBytes` by `shuffleBytes`.
   
   Both values are `Long`, so Scala performs integer division and truncates the 
fractional part before the result is rounded for display.
   
   For example, when the uncompressed shuffle size is 150 MB and the compressed 
size is 100 MB, the expected compression ratio is `1.5`, but Spark UI displays 
`1.0`.
   
   <img width="966" height="332" alt="Image" 
src="https://github.com/user-attachments/assets/c3ee4382-63b9-43a6-b4d5-0efa32511cae";
 />
   
   
   ### Affects Version(s)
   
   master
   
   ### Uniffle Server Log Output
   
   ```logtalk
   
   ```
   
   ### Uniffle Engine Log Output
   
   ```logtalk
   
   ```
   
   ### Uniffle Server Configurations
   
   ```yaml
   
   ```
   
   ### Uniffle Engine Configurations
   
   ```yaml
   
   ```
   
   ### Additional context
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [x] Yes I am willing to submit a PR!


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

Reply via email to