diff --git a/src/test/isolation2/expected/reindex/reindextable_while_reindex_idx_aoco_part_btree.out b/src/test/isolation2/expected/reindex/reindextable_while_reindex_idx_aoco_part_btree.out index 7dd094ee895..07717612efb 100644 --- a/src/test/isolation2/expected/reindex/reindextable_while_reindex_idx_aoco_part_btree.out +++ b/src/test/isolation2/expected/reindex/reindextable_while_reindex_idx_aoco_part_btree.out @@ -45,6 +45,22 @@ INSERT 12 -- of one column. -- See https://github.com/apache/cloudberry/issues/26#issuecomment-1682097755 -- for more details. +3: select dbid,count(distinct relfilenode) as cnt, relname from old_relfilenodes group by dbid, relname order by 1,2,3; + dbid | cnt | relname +------+-----+----------------------------------------------------- + -1 | 1 | reindex_crtab_part_aoco_btree_1_prt_p_one_id_idx + -1 | 1 | reindex_crtab_part_aoco_btree_id_idx + -1 | 2 | reindex_crtab_part_aoco_btree_1_prt_de_fault_id_idx + 0 | 1 | reindex_crtab_part_aoco_btree_1_prt_p_one_id_idx + 0 | 1 | reindex_crtab_part_aoco_btree_id_idx + 0 | 2 | reindex_crtab_part_aoco_btree_1_prt_de_fault_id_idx + 1 | 1 | reindex_crtab_part_aoco_btree_1_prt_p_one_id_idx + 1 | 1 | reindex_crtab_part_aoco_btree_id_idx + 1 | 2 | reindex_crtab_part_aoco_btree_1_prt_de_fault_id_idx + 2 | 1 | reindex_crtab_part_aoco_btree_1_prt_p_one_id_idx + 2 | 1 | reindex_crtab_part_aoco_btree_id_idx + 2 | 2 | reindex_crtab_part_aoco_btree_1_prt_de_fault_id_idx +(12 rows) 3: select relname, relname = 'reindex_crtab_part_aoco_btree_1_prt_p_one_id_idx' and res.cnt in (1, 2) as special_case_for_p_one_id_idx, case when relname = 'reindex_crtab_part_aoco_btree_1_prt_p_one_id_idx' then -1 else res.cnt end as count from (select distinct count(distinct relfilenode) as cnt, relname from old_relfilenodes group by dbid, relname) as res; relname | special_case_for_p_one_id_idx | count -----------------------------------------------------+-------------------------------+------- diff --git a/src/test/isolation2/sql/reindex/reindextable_while_reindex_idx_aoco_part_btree.sql b/src/test/isolation2/sql/reindex/reindextable_while_reindex_idx_aoco_part_btree.sql index d2895d4a33c..963ec8e1299 100644 --- a/src/test/isolation2/sql/reindex/reindextable_while_reindex_idx_aoco_part_btree.sql +++ b/src/test/isolation2/sql/reindex/reindextable_while_reindex_idx_aoco_part_btree.sql @@ -42,6 +42,7 @@ DELETE FROM reindex_crtab_part_aoco_btree WHERE id < 128; -- of one column. -- See https://github.com/apache/cloudberry/issues/26#issuecomment-1682097755 -- for more details. +3: select dbid,count(distinct relfilenode) as cnt, relname from old_relfilenodes group by dbid, relname order by 1,2,3; 3: select relname, relname = 'reindex_crtab_part_aoco_btree_1_prt_p_one_id_idx' and res.cnt in (1, 2) as special_case_for_p_one_id_idx, case