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

morrySnow pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/master by this push:
     new aeb76c4a636 [fix](regression) Use explicit size call in nested type 
plugin (#64610)
aeb76c4a636 is described below

commit aeb76c4a63648694f41adfdd9dbd7e0d4e0c3d8e
Author: morrySnow <[email protected]>
AuthorDate: Thu Jun 18 17:51:34 2026 +0800

    [fix](regression) Use explicit size call in nested type plugin (#64610)
    
    ### What problem does this PR solve?
    
    Problem Summary:
    regression-test/plugins/plugins_create_table_nested_type.groovy used
    Groovy list property access such as res.size and res[i].size while
    iterating generated nested type combinations. For nested lists, Groovy
    can treat List.property as GPath property access over the elements
    instead of a deterministic List.size() call. When the property lookup
    reaches Integer elements, evaluating size fails with
    MissingPropertyException. This patch uses explicit size() calls so the
    helper iterates list sizes directly and remains stable when all
    regression cases run in parallel.
---
 regression-test/plugins/plugins_create_table_nested_type.groovy | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/regression-test/plugins/plugins_create_table_nested_type.groovy 
b/regression-test/plugins/plugins_create_table_nested_type.groovy
index bb4bdde5818..8c0666503e9 100644
--- a/regression-test/plugins/plugins_create_table_nested_type.groovy
+++ b/regression-test/plugins/plugins_create_table_nested_type.groovy
@@ -133,9 +133,9 @@ Suite.metaClass.get_create_table_with_nested_type { int 
depth, String tb_name ->
     }
 
     backtrack();
-    for (int i = 0; i < res.size; i++) {
+    for (int i = 0; i < res.size(); i++) {
         def date_type_str = ""
-        for (int j = 0; j < res[i].size; j++) {
+        for (int j = 0; j < res[i].size(); j++) {
             date_type_str += res[i][j] + " "
         }
         logger.info(date_type_str)


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

Reply via email to