This is an automated email from the ASF dual-hosted git repository. kxiao pushed a commit to branch branch-2.0 in repository https://gitbox.apache.org/repos/asf/doris.git
commit 79191bcd5a2ff5ae24b9e6fe7cd32949c368496c Author: 谢健 <[email protected]> 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: [email protected] For additional commands, e-mail: [email protected]
