Skip to content

World's most powerful open data catalog for building a high-performance, geo-distributed and federated metadata lake.

[#1781] fix:(trino-connector) Remove warning messages from the query execution output in Trino. (#1782)

Yuhui7793adff0837
diff --git a/integration-test/src/test/java/com/datastrato/gravitino/integration/test/trino/TrinoQueryIT.java b/integration-test/src/test/java/com/datastrato/gravitino/integration/test/trino/TrinoQueryIT.java
index 605ec6eddf..f9d3bee482 100644
--- a/integration-test/src/test/java/com/datastrato/gravitino/integration/test/trino/TrinoQueryIT.java
+++ b/integration-test/src/test/java/com/datastrato/gravitino/integration/test/trino/TrinoQueryIT.java
@@ -55,7 +55,7 @@ public class TrinoQueryIT extends TrinoQueryITBase {
ciTestsets.add("lakehouse-iceberg");
ciTestsets.add("jdbc-mysql");
ciTestsets.add("jdbc-postgresql");
- ciTestsets.add("tpcds");
+ ciTestsets.add("tpch");
}
@BeforeAll
@@ -206,6 +206,7 @@ public class TrinoQueryIT extends TrinoQueryITBase {
}
String result = queryRunner.runQuery(sql).trim();
+ result = result.replaceAll("WARNING:.*?\\n", "");
boolean match = match(expectResult, result);
if (match) {
diff --git a/integration-test/src/test/resources/trino-ci-testset/testsets/tpcds/00014.txt b/integration-test/src/test/resources/trino-ci-testset/testsets/tpcds/00014.txt
index 48b3066b49..a5422ce436 100644
--- a/integration-test/src/test/resources/trino-ci-testset/testsets/tpcds/00014.txt
+++ b/integration-test/src/test/resources/trino-ci-testset/testsets/tpcds/00014.txt
@@ -1,4 +1,3 @@
-WARNING: Number of stages in the query (%) exceeds the soft limit (50). If the query contains multiple aggregates with DISTINCT over different columns, please set the 'mark_distinct_strategy' session property to 'none'. If the query contains WITH clauses that are referenced more than once, please create temporary table(s) for the queries in those clauses.
"catalog","1001001","1","5","24855.29","3"
"catalog","1001001","1","","24855.29","3"
"catalog","1001001","2","2","14819.17","3"