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

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


The following commit(s) were added to refs/heads/branch-4.0 by this push:
     new 37df2064d2a branch-4.0: [fix](iceberg) fix unstable iceberg case 
#60646 (#60737)
37df2064d2a is described below

commit 37df2064d2ac27c2569afd5e8a77612e82bf4173
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Sat Feb 14 10:55:08 2026 +0800

    branch-4.0: [fix](iceberg) fix unstable iceberg case #60646 (#60737)
    
    Cherry-picked from #60646
    
    Co-authored-by: Socrates <[email protected]>
---
 .../iceberg/test_iceberg_sys_table.groovy          | 29 ++++++++++++++++------
 1 file changed, 21 insertions(+), 8 deletions(-)

diff --git 
a/regression-test/suites/external_table_p0/iceberg/test_iceberg_sys_table.groovy
 
b/regression-test/suites/external_table_p0/iceberg/test_iceberg_sys_table.groovy
index 9f5c135712c..b9aeac157f9 100644
--- 
a/regression-test/suites/external_table_p0/iceberg/test_iceberg_sys_table.groovy
+++ 
b/regression-test/suites/external_table_p0/iceberg/test_iceberg_sys_table.groovy
@@ -271,14 +271,27 @@ suite("test_iceberg_sys_table", 
"p0,external,doris,external_docker,external_dock
 
         order_qt_select_manifests_count """select count(*) from 
${systableName}"""
 
-        List<List<Object>> res1 = sql """select * from ${systableName} order 
by path"""
-        List<List<Object>> res2 = sql """select * from iceberg_meta(
-            "table" = "${catalog_name}.${db_name}.${table}",
-            "query_type" = "${systableType}") order by path"""
-        assertEquals(res1.size(), res2.size());
-        for (int i = 0; i < res1.size(); i++) {
-            for (int j = 0; j < res1[i].size(); j++) {
-                assertEquals(res1[i][j], res2[i][j]);
+        if (systableType.equals("manifests")) {
+            List<List<Object>> res1 = sql """select * from ${systableName} 
order by path"""
+            List<List<Object>> res2 = sql """select * from iceberg_meta(
+                "table" = "${catalog_name}.${db_name}.${table}",
+                "query_type" = "${systableType}") order by path"""
+            assertEquals(res1.size(), res2.size());
+            for (int i = 0; i < res1.size(); i++) {
+                for (int j = 0; j < res1[i].size(); j++) {
+                    assertEquals(res1[i][j], res2[i][j]);
+                }
+            }
+        } else {
+            List<List<Object>> res1 = sql """select * from ${systableName} 
order by path, reference_snapshot_id"""
+            List<List<Object>> res2 = sql """select * from iceberg_meta(
+                "table" = "${catalog_name}.${db_name}.${table}",
+                "query_type" = "${systableType}") order by path, 
reference_snapshot_id"""
+            assertEquals(res1.size(), res2.size());
+            for (int i = 0; i < res1.size(); i++) {
+                for (int j = 0; j < res1[i].size(); j++) {
+                    assertEquals(res1[i][j], res2[i][j]);
+                }
             }
         }
     }


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

Reply via email to