This is an automated email from the ASF dual-hosted git repository.

morrysnow pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/master by this push:
     new b70fb4ca8e [fix](test) build internal table for TPCHTest to fix 
testRank (#21566)
b70fb4ca8e is described below

commit b70fb4ca8e4b6908965f7515ecce115b12b2c868
Author: 谢健 <jianx...@gmail.com>
AuthorDate: Fri Jul 7 12:46:07 2023 +0800

    [fix](test) build internal table for TPCHTest to fix testRank (#21566)
---
 .../org/apache/doris/nereids/datasets/tpch/TPCHTestBase.java     | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git 
a/fe/fe-core/src/test/java/org/apache/doris/nereids/datasets/tpch/TPCHTestBase.java
 
b/fe/fe-core/src/test/java/org/apache/doris/nereids/datasets/tpch/TPCHTestBase.java
index 71dddf165c..a0c9b77f7e 100644
--- 
a/fe/fe-core/src/test/java/org/apache/doris/nereids/datasets/tpch/TPCHTestBase.java
+++ 
b/fe/fe-core/src/test/java/org/apache/doris/nereids/datasets/tpch/TPCHTestBase.java
@@ -17,9 +17,18 @@
 
 package org.apache.doris.nereids.datasets.tpch;
 
+import org.apache.doris.catalog.InternalSchemaInitializer;
+import org.apache.doris.common.FeConstants;
+
 public abstract class TPCHTestBase extends AnalyzeCheckTestBase {
     @Override
     protected void runBeforeAll() throws Exception {
+        // The internal table for TPCHTestBase is constructed in order to 
facilitate
+        // the execution of certain tests that require the invocation of a 
deriveStats job.
+        // This deriveStats job is responsible for retrieving statistics from 
the aforementioned
+        // internal table.
+        FeConstants.disableInternalSchemaDb = false;
+        new InternalSchemaInitializer().run();
         createDatabase("tpch");
         connectContext.setDatabase("default_cluster:tpch");
         TPCHUtils.createTables(this);


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to