KKcorps commented on code in PR #10447:
URL: https://github.com/apache/pinot/pull/10447#discussion_r1160809762
##########
pinot-query-runtime/src/test/java/org/apache/pinot/query/runtime/operator/OpChainTest.java:
##########
@@ -100,6 +100,20 @@ public void testStatsCollection() {
Long.parseLong(executionStats.get(DataTable.MetadataKey.OPERATOR_EXECUTION_TIME_MS.getName()))
<= 2000);
}
+ @Test
+ public void testStatsCollectionTracingDisabled() {
+ OpChainExecutionContext context =
OperatorTestUtil.getDefaultContextWithTracingDisabled();
+ DummyMultiStageOperator dummyMultiStageOperator = new
DummyMultiStageOperator(context);
+
+ OpChain opChain = new OpChain(context, dummyMultiStageOperator, new
ArrayList<>());
+ opChain.getStats().executing();
+ opChain.getRoot().nextBlock();
+ opChain.getStats().queued();
+
+ Assert.assertTrue(opChain.getStats().getExecutionTime() >= 1000);
+ Assert.assertEquals(opChain.getStats().getOperatorStatsMap().size(), 0);
+ }
Review Comment:
done
--
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]