[fix](test) build internal table for TPCHTest to fix testRank (#21566)
This commit is contained in:
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user