Skip to content

Commit 50cbb9f

Browse files
shuke987claude
andauthored
[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 #62454. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent e984a38 commit 50cbb9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

regression-test/suites/http_rest_api/post/test_query_stmt.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ suite("test_query_stmt") {
152152
assertEquals(obj.msg, SUCCESS_MSG)
153153
assertEquals(obj.code, SUCCESS_CODE)
154154
// we can only check the number is correctly
155-
assertEquals(obj.data.data.size, 3)
155+
assertEquals(obj.data.data.size(), 3)
156156

157157
url = "/api/query_schema/default_cluster/" + context.config.defaultDb
158158
def stmt5 = " select * from ${tableName}"

0 commit comments

Comments
 (0)