danhuawang commented on code in PR #5632:
URL: https://github.com/apache/gravitino/pull/5632#discussion_r1865127498


##########
trino-connector/integration-test/src/test/java/org/apache/gravitino/trino/connector/integration/test/TrinoQueryIT.java:
##########
@@ -131,6 +132,23 @@ public void runOneTestSetWithCatalog(
     TrinoQueryRunner queryRunner = new 
TrinoQueryRunner(TrinoQueryITBase.trinoUri);
     executeSqlFile(testSetDirName, catalogPrefix + "prepare.sql", queryRunner, 
catalog);
 
+    if (new File(ITUtils.joinPath(testSetDirName, catalogPrefix + 
"cascading_test.sql")).exists()) {
+      Awaitility.await()
+          .atMost(30, TimeUnit.SECONDS)
+          .pollInterval(1, TimeUnit.SECONDS)
+          .until(
+              () -> {
+                try {
+                  executeSqlFile(
+                      testSetDirName, catalogPrefix + "cascading_test.sql", 
queryRunner, catalog);
+                  return true;
+                } catch (Exception e) {
+                  LOG.error("Failed to run query using trino cascading 
connector", e);
+                  return false;
+                }
+              });
+    }
+

Review Comment:
   Fixed.



-- 
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: commits-unsubscr...@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to