From c6270607588fd18f7a190b4ca08e81eb45c6e081 Mon Sep 17 00:00:00 2001 From: Yash Mayya Date: Mon, 1 Jun 2026 23:01:21 -0700 Subject: [PATCH] Fix flaky testExplainPlanQueryV2 by masking scientific-notation rule timings --- .../integration/tests/OfflineClusterIntegrationTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pinot-integration-tests/src/test/java/org/apache/pinot/integration/tests/OfflineClusterIntegrationTest.java b/pinot-integration-tests/src/test/java/org/apache/pinot/integration/tests/OfflineClusterIntegrationTest.java index be6f1c1931ab..37942ec0b487 100644 --- a/pinot-integration-tests/src/test/java/org/apache/pinot/integration/tests/OfflineClusterIntegrationTest.java +++ b/pinot-integration-tests/src/test/java/org/apache/pinot/integration/tests/OfflineClusterIntegrationTest.java @@ -3569,7 +3569,7 @@ public void testExplainPlanQueryV2() // needed because both OfflineClusterIntegrationTest and MultiNodesOfflineClusterIntegrationTest run this test // case with different number of documents in the segment. response1 = response1.replaceAll("docs:[0-9]+", "docs:*") - .replaceAll("Time: \\d+\\.\\d+", "Time:*"); + .replaceAll("Time: \\d+\\.\\d+(?:[eE][-+]?\\d+)?", "Time:*"); JsonNode response1Json = JsonUtils.stringToJsonNode(response1); assertEquals(response1Json.get("dataSchema").get("columnNames").get(0).asText(), "SQL"); @@ -3605,7 +3605,7 @@ public void testExplainPlanQueryV2() // language=sql String query2 = "EXPLAIN PLAN WITHOUT IMPLEMENTATION FOR SELECT * FROM mytable WHERE FlightNum < 0"; String response2 = postQuery(query2).get("resultTable").toString() - .replaceAll("Time: \\d+\\.\\d+", "Time: *"); + .replaceAll("Time: \\d+\\.\\d+(?:[eE][-+]?\\d+)?", "Time: *"); JsonNode response2Json = JsonUtils.stringToJsonNode(response2); assertEquals(response2Json.get("dataSchema").get("columnNames").get(0).asText(), "SQL");