mqliang commented on a change in pull request #7544:
URL: https://github.com/apache/pinot/pull/7544#discussion_r724763930
##########
File path:
pinot-core/src/test/java/org/apache/pinot/queries/InterSegmentResultTableSingleValueQueriesTest.java
##########
@@ -1099,4 +1100,21 @@ public void testSelection() {
Assert.assertEquals(resultTable.getRows().get(i), rows.get(i));
}
}
+
+ @Test
+ public void testThreadCpuTime() {
+ String query = "SELECT * FROM testTable";
+
+ ThreadTimer.setThreadCpuTimeMeasurementEnabled(true);
+ if (ThreadTimer.isThreadCpuTimeMeasurementEnabled()) {
Review comment:
This if check is redundant, it must return true as you explicitly enable
it in the previous line of code.
##########
File path:
pinot-core/src/test/java/org/apache/pinot/queries/InterSegmentResultTableSingleValueQueriesTest.java
##########
@@ -1099,4 +1100,21 @@ public void testSelection() {
Assert.assertEquals(resultTable.getRows().get(i), rows.get(i));
}
}
+
+ @Test
+ public void testThreadCpuTime() {
+ String query = "SELECT * FROM testTable";
+
+ ThreadTimer.setThreadCpuTimeMeasurementEnabled(true);
+ if (ThreadTimer.isThreadCpuTimeMeasurementEnabled()) {
Review comment:
This if check is redundant, it must return true as you just explicitly
enable it in the previous line of code.
--
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]