abhishekbafna commented on code in PR #15862:
URL: https://github.com/apache/pinot/pull/15862#discussion_r2107366459


##########
pinot-integration-tests/src/test/java/org/apache/pinot/integration/tests/logicaltable/LogicalTableWithTwoOfflineOneRealtimeTableIntegrationTest.java:
##########
@@ -62,15 +64,17 @@ public void testUpdateLogicalTableTimeBoundary()
 
   private void updateTimeBoundaryTableInLogicalTable(LogicalTableConfig 
logicalTableConfig)
       throws IOException {
-    List<String> includedTables =
-        (List<String>) 
logicalTableConfig.getTimeBoundaryConfig().getParameters().get("includedTables");
+    TimeBoundaryStrategy timeBoundaryStrategy = 
TimeBoundaryStrategyService.getInstance()
+        
.getTimeBoundaryStrategy(logicalTableConfig.getTimeBoundaryConfig().getBoundaryStrategy());
+    List<String> includedTables = 
timeBoundaryStrategy.getTimeBoundaryTableNames(logicalTableConfig);
 
     String timeBoundaryTableName = 
TableNameBuilder.extractRawTableName(includedTables.get(0));
     String newTimeBoundaryTableName = timeBoundaryTableName.equals("o_1") ? 
"o_2" : "o_1";
     newTimeBoundaryTableName = 
TableNameBuilder.OFFLINE.tableNameWithType(newTimeBoundaryTableName);
 
     Map<String, Object> parameters = Map.of("includedTables", 
List.of(newTimeBoundaryTableName));
     logicalTableConfig.getTimeBoundaryConfig().setParameters(parameters);
+    logicalTableConfig.setQueryConfig(null);

Review Comment:
   Locally, the timeout test runs first and fails which leaves 1ms query 
timeout and sometime cause failure for this test. This test run a lot query and 
randomly it fails for one of them.



-- 
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]

Reply via email to