This is an automated email from the ASF dual-hosted git repository.

yiguolei pushed a commit to branch branch-4.1
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-4.1 by this push:
     new 6093c5a52d7 branch-4.1: [fix](test) Stabilize lineage skip internal 
schema test #65235 (#65511)
6093c5a52d7 is described below

commit 6093c5a52d70161f3bd77d30a59e8ef925dd2b8d
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Mon Jul 13 16:05:15 2026 +0800

    branch-4.1: [fix](test) Stabilize lineage skip internal schema test #65235 
(#65511)
    
    Cherry-picked from #65235
    
    Co-authored-by: seawinde <[email protected]>
---
 .../doris/nereids/lineage/LineageUtilsSkipTest.java      | 16 ++++------------
 1 file changed, 4 insertions(+), 12 deletions(-)

diff --git 
a/fe/fe-core/src/test/java/org/apache/doris/nereids/lineage/LineageUtilsSkipTest.java
 
b/fe/fe-core/src/test/java/org/apache/doris/nereids/lineage/LineageUtilsSkipTest.java
index 33c49eb9939..400b9b22797 100644
--- 
a/fe/fe-core/src/test/java/org/apache/doris/nereids/lineage/LineageUtilsSkipTest.java
+++ 
b/fe/fe-core/src/test/java/org/apache/doris/nereids/lineage/LineageUtilsSkipTest.java
@@ -41,17 +41,12 @@ import java.util.UUID;
 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
@@ -73,9 +68,6 @@ public class LineageUtilsSkipTest extends TestWithFeService {
         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`)"


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to