beliefer opened a new pull request #28081: [SPARK-31315][SQL][TEST] 
SQLQueryTestSuite: Display the total compile time for generated java code
URL: https://github.com/apache/spark/pull/28081
 
 
   ### What changes were proposed in this pull request?
   After my investigation, `SQLQueryTestSuite` spent a lot of time compiling 
the generated java code.
   We should display the total compile time for generated java code.
   
   This PR will add the following to `SQLQueryTestSuite`'s output.
   ```
   === Metrics of Whole Codegen ===
   Total compile time: 80.564516529 seconds
   ```
   
   Note: At first, I wanted to use `CodegenMetrics.METRIC_COMPILATION_TIME` to 
do this. After many experiments, I found that 
`CodegenMetrics.METRIC_COMPILATION_TIME` is only effective for a single test 
case, and cannot play a role in the whole life cycle of `SQLQueryTestSuite`.
   
   
   ### Why are the changes needed?
   Display the total compile time for generated java code.
   
   
   ### Does this PR introduce any user-facing change?
   'No'.
   
   
   ### How was this patch tested?
   Jenkins test.
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to