Skip to content

Commit

Permalink
[fix](test) build internal table for TPCHTest to fix testRank (apache…
Browse files Browse the repository at this point in the history
  • Loading branch information
keanji-x authored Jul 7, 2023
1 parent d76293d commit b70fb4c
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b70fb4c

Please sign in to comment.