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 18, 2024
1 parent f165d5a commit 970d3da
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
import com.starrocks.server.WarehouseManager;
import com.starrocks.sql.ast.InsertStmt;
import com.starrocks.sql.common.DmlException;
import com.starrocks.statistic.StatisticsMetaManager;
import com.starrocks.utframe.StarRocksAssert;
import com.starrocks.utframe.UtFrameUtils;
import org.junit.Assert;
Expand Down Expand Up @@ -65,6 +66,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 970d3da

Please sign in to comment.