[fix](test) build internal table for TPCHTest to fix testRank (#21566)

This commit is contained in:
谢健
2023-07-07 12:46:07 +08:00
committed by GitHub
parent d76293d9bf
commit b70fb4ca8e

View File

@ -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);