jayantdb opened a new pull request, #52237:
URL: https://github.com/apache/spark/pull/52237

   ### What changes were proposed in this pull request?
   This PR fixes an issue where `inputRowsPerSecond` and 
`processedRowsPerSecond` in streaming progress metrics JSON
   were displayed in scientific notation (e.g., `1.9871777605776876E8`). The 
fix uses safe `Decimal` casting 
   to ensure values are displayed in a more human-readable format.
   
   ### Why are the changes needed?
   Improves the readability of Spark Structured Streaming progress metrics JSON.
   
   ### Does this PR introduce _any_ user-facing change?
   No
   
   ### How was this patch tested?
   Run this Maven test:
   ```
   ./build/mvn -pl sql/core,sql/api \                       
     -am test \
     
-DwildcardSuites=org.apache.spark.sql.streaming.StreamingQueryStatusAndProgressSuite
 \
     -DwildcardTestName="SPARK-53491"
   ```
   Results:
   ```
   Run completed in 10 seconds, 680 milliseconds.
   Total number of tests run: 12
   Suites: completed 2, aborted 0
   Tests: succeeded 12, failed 0, canceled 0, ignored 0, pending 0
   All tests passed.
   ```
   
   ### Was this patch authored or co-authored using generative AI tooling?
   No
   


-- 
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: reviews-unsubscr...@spark.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to