walterddr commented on code in PR #10450:
URL: https://github.com/apache/pinot/pull/10450#discussion_r1144918771
##########
pinot-query-runtime/src/main/java/org/apache/pinot/query/runtime/operator/OperatorStats.java:
##########
@@ -63,10 +65,21 @@ public void startTimer() {
}
}
- public void endTimer() {
+ public void endTimer(TransferableBlock block) {
if (_executeStopwatch.isRunning()) {
_executeStopwatch.stop();
}
+ if (!_processingStarted && block.isNoOpBlock()) {
+ _startTimeMs = -1;
+ _executeStopwatch.reset();
+ } else {
+ _processingStarted = true;
+ }
+ }
+
+ public void resetStartTime() {
+ _startTimeMs = -1;
+ _executeStopwatch.reset();
Review Comment:
remover as it is no longer used.
--
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]