Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
Signed-off-by: Murphy <[email protected]>
  • Loading branch information
murphyatwork committed Sep 9, 2024
1 parent 629a55f commit ea4687d
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import com.starrocks.server.GlobalStateMgr;
import com.starrocks.server.WarehouseManager;
import com.starrocks.sql.ast.InsertStmt;
import com.starrocks.statistic.StatisticsMetaManager;
import com.starrocks.utframe.StarRocksAssert;
import com.starrocks.utframe.UtFrameUtils;
import org.junit.Assert;
Expand Down Expand Up @@ -63,6 +64,11 @@ public static void beforeClass() throws Exception {
connectContext = UtFrameUtils.createDefaultCtx();
starRocksAssert = new StarRocksAssert(connectContext);

if (!starRocksAssert.databaseExist("_statistics_")) {
StatisticsMetaManager m = new StatisticsMetaManager();
m.createStatisticsTablesForTest();
}

starRocksAssert.withDatabase("insert_overwrite_test").useDatabase("insert_overwrite_test")
.withTable(
"CREATE TABLE insert_overwrite_test.t1(k1 int, k2 int, k3 int)" +
Expand Down

0 comments on commit ea4687d

Please sign in to comment.