@@ -142,7 +142,7 @@ public void testAggAddOrDropColumn() throws Exception {
142142 String addValColStmtStr = "alter table test.sc_agg add column new_v1 int MAX default '0'" ;
143143 AlterTableStmt addValColStmt = (AlterTableStmt ) parseAndAnalyzeStmt (addValColStmtStr );
144144 Catalog .getCurrentCatalog ().getAlterInstance ().processAlterTable (addValColStmt );
145-
145+ jobSize ++;
146146 //check alter job, do not create job
147147 Map <Long , AlterJobV2 > alterJobs = Catalog .getCurrentCatalog ().getSchemaChangeHandler ().getAlterJobsV2 ();
148148 Assertions .assertEquals (jobSize , alterJobs .size ());
@@ -183,7 +183,7 @@ public void testAggAddOrDropColumn() throws Exception {
183183 String dropValColStmtStr = "alter table test.sc_agg drop column new_v1" ;
184184 AlterTableStmt dropValColStmt = (AlterTableStmt ) parseAndAnalyzeStmt (dropValColStmtStr );
185185 Catalog .getCurrentCatalog ().getAlterInstance ().processAlterTable (dropValColStmt );
186-
186+ jobSize ++;
187187 //check alter job, do not create job
188188 LOG .info ("alterJobs:{}" , alterJobs );
189189 Assertions .assertEquals (jobSize , alterJobs .size ());
@@ -264,7 +264,7 @@ public void testUniqAddOrDropColumn() throws Exception {
264264 String addValColStmtStr = "alter table test.sc_uniq add column new_v1 int default '0'" ;
265265 AlterTableStmt addValColStmt = (AlterTableStmt ) parseAndAnalyzeStmt (addValColStmtStr );
266266 Catalog .getCurrentCatalog ().getAlterInstance ().processAlterTable (addValColStmt );
267-
267+ jobSize ++;
268268 //check alter job, do not create job
269269 Map <Long , AlterJobV2 > alterJobs = Catalog .getCurrentCatalog ().getSchemaChangeHandler ().getAlterJobsV2 ();
270270 LOG .info ("alterJobs:{}" , alterJobs );
@@ -285,7 +285,7 @@ public void testUniqAddOrDropColumn() throws Exception {
285285 String dropValColStmtStr = "alter table test.sc_uniq drop column new_v1" ;
286286 AlterTableStmt dropValColStm = (AlterTableStmt ) parseAndAnalyzeStmt (dropValColStmtStr );
287287 Catalog .getCurrentCatalog ().getAlterInstance ().processAlterTable (dropValColStm );
288-
288+ jobSize ++;
289289 //check alter job
290290 Assertions .assertEquals (jobSize , alterJobs .size ());
291291 tbl .readLock ();
@@ -321,7 +321,7 @@ public void testDupAddOrDropColumn() throws Exception {
321321 String addValColStmtStr = "alter table test.sc_dup add column new_v1 int default '0'" ;
322322 AlterTableStmt addValColStmt = (AlterTableStmt ) parseAndAnalyzeStmt (addValColStmtStr );
323323 Catalog .getCurrentCatalog ().getAlterInstance ().processAlterTable (addValColStmt );
324-
324+ jobSize ++;
325325 //check alter job, do not create job
326326 Map <Long , AlterJobV2 > alterJobs = Catalog .getCurrentCatalog ().getSchemaChangeHandler ().getAlterJobsV2 ();
327327 LOG .info ("alterJobs:{}" , alterJobs );
@@ -342,7 +342,7 @@ public void testDupAddOrDropColumn() throws Exception {
342342 String dropValColStmtStr = "alter table test.sc_dup drop column new_v1" ;
343343 AlterTableStmt dropValColStm = (AlterTableStmt ) parseAndAnalyzeStmt (dropValColStmtStr );
344344 Catalog .getCurrentCatalog ().getAlterInstance ().processAlterTable (dropValColStm );
345-
345+ jobSize ++;
346346 //check alter job
347347 Assertions .assertEquals (jobSize , alterJobs .size ());
348348 tbl .readLock ();
0 commit comments