This is an automated email from the ASF dual-hosted git repository.
hellostephen 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 50cbb9f82a1 [fix](regression) fix MissingPropertyException in
test_query_stmt (#62455)
50cbb9f82a1 is described below
commit 50cbb9f82a160ff0e5fdd2e5dfe16856f00c9907
Author: shuke <[email protected]>
AuthorDate: Tue Apr 14 11:33:17 2026 +0800
[fix](regression) fix MissingPropertyException in test_query_stmt (#62455)
## Problem
`assertEquals(obj.data.data.size, 3)` uses `.size` without parentheses
on a JSON-parsed `ArrayList<ArrayList<Integer>>`. In newer Groovy
versions this triggers GPath spreading, mapping `.size` across each row
element (which are `Integer`s). Since `Integer` has no `size` property:
```
groovy.lang.MissingPropertyException: No such property: size for class:
java.lang.Integer
```
## Fix
```groovy
// Before
assertEquals(obj.data.data.size, 3)
// After
assertEquals(obj.data.data.size(), 3)
```
Root cause: case issue — same GPath `.size` vs `.size()` pattern as
apache/doris#62454.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Sonnet 4.6 <[email protected]>
---
regression-test/suites/http_rest_api/post/test_query_stmt.groovy | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/regression-test/suites/http_rest_api/post/test_query_stmt.groovy
b/regression-test/suites/http_rest_api/post/test_query_stmt.groovy
index 3001da2b15d..eba5ecc11f5 100644
--- a/regression-test/suites/http_rest_api/post/test_query_stmt.groovy
+++ b/regression-test/suites/http_rest_api/post/test_query_stmt.groovy
@@ -152,7 +152,7 @@ suite("test_query_stmt") {
assertEquals(obj.msg, SUCCESS_MSG)
assertEquals(obj.code, SUCCESS_CODE)
// we can only check the number is correctly
- assertEquals(obj.data.data.size, 3)
+ assertEquals(obj.data.data.size(), 3)
url = "/api/query_schema/default_cluster/" + context.config.defaultDb
def stmt5 = " select * from ${tableName}"
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]