cxzl25 opened a new issue #2260: URL: https://github.com/apache/incubator-kyuubi/issues/2260
### 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-kyuubi/issues?q=is%3Aissue) and found no similar issues. ### Describe the bug The default value of completedTime is 0, and the calculation of duration only considers the case where completedTime is -1. org.apache.kyuubi.operation.AbstractOperation ```scala protected var completedTime: Long = _ ```` org.apache.kyuubi.engine.spark.events.SparkOperationEvent ```scala def duration: Long = { if (completeTime == -1L) { System.currentTimeMillis - createTime } else { completeTime - createTime } } ``` ### Affects Version(s) 1.5.0 ### Kyuubi Server Log Output _No response_ ### Kyuubi Engine Log Output _No response_ ### Kyuubi Server Configurations _No response_ ### Kyuubi Engine Configurations _No response_ ### 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]
