Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,12 @@
public class LineageUtilsSkipTest extends TestWithFeService {

private String[] originalPlugins;
private boolean originalEnableInternalSchemaDb;

@Override
protected void beforeCluster() {
originalEnableInternalSchemaDb = FeConstants.enableInternalSchemaDb;
FeConstants.enableInternalSchemaDb = true;
}

@Override
protected void runAfterAll() throws Exception {
FeConstants.enableInternalSchemaDb = originalEnableInternalSchemaDb;
protected void runBeforeAll() throws Exception {
FeConstants.runningUnitTest = true;
InternalSchemaInitializer.createDb();
InternalSchemaInitializer.createTbl();
}

@BeforeEach
Expand All @@ -73,9 +68,6 @@ public void testSkipInternalSchemaInsert() throws Exception {
createTable("create table " + dbName + ".src(k1 int) "
+ "distributed by hash(k1) buckets 1 properties('replication_num'='1');");

InternalSchemaInitializer.createDb();
InternalSchemaInitializer.createTbl();

String sql = "insert into `internal`.`__internal_schema`.`column_statistics`"
+ "(`id`, `catalog_id`, `db_id`, `tbl_id`, `idx_id`, `col_id`, `part_id`,"
+ " `count`, `ndv`, `null_count`, `min`, `max`, `data_size_in_bytes`, `update_time`, `hot_value`)"
Expand Down
Loading