You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by "shuke987 (via GitHub)" <gi...@apache.org> on 2026/04/13 13:20:15 UTC
[PR] [fix](regression) fix MissingPropertyException in plugins_create_table_nested_type [doris]
shuke987 opened a new pull request, #62454:
URL: https://github.com/apache/doris/pull/62454
## Problem
`plugins_create_table_nested_type.groovy` uses `res.size` and `res[i].size` (without parentheses) to iterate over lists. In newer Groovy versions, accessing `.size` on a collection without `()` triggers **GPath spreading**, which maps the property access across each element instead of calling `size()` on the collection itself.
Since `res` is `List<List<Integer>>`, `res.size` returns a `List<Integer>` (the sizes of each inner list). When the loop then tries `res[i].size` on a `List<Integer>`, Groovy spreads again to each `Integer` element, which has no `size` property — resulting in:
```
groovy.lang.MissingPropertyException: No such property: size for class: java.lang.Integer
```
## Fix
Replace `.size` with `.size()` (explicit method call) to always get the collection size as an `int`:
```groovy
// Before
for (int i = 0; i < res.size; i++) {
for (int j = 0; j < res[i].size; j++) {
// After
for (int i = 0; i < res.size(); i++) {
for (int j = 0; j < res[i].size(); j++) {
```
## Root Cause
Case issue — Groovy GPath property spread vs. explicit method call on collections.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [fix](regression) fix MissingPropertyException in plugins_create_table_nested_type [doris]
Posted by "shuke987 (via GitHub)" <gi...@apache.org>.
shuke987 commented on PR #62454:
URL: https://github.com/apache/doris/pull/62454#issuecomment-4236840779
run buildall
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [fix](regression) fix MissingPropertyException in plugins_create_table_nested_type [doris]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed pull request #62454: [fix](regression) fix MissingPropertyException in plugins_create_table_nested_type
URL: https://github.com/apache/doris/pull/62454
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [fix](regression) fix MissingPropertyException in plugins_create_table_nested_type [doris]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #62454:
URL: https://github.com/apache/doris/pull/62454#issuecomment-6103727945
We're closing this PR because it hasn't been updated in a while.
This isn't a judgement on the merit of the PR in any way. It's just a way of keeping the PR queue manageable.
If you'd like to revive this PR, please reopen it and feel free a maintainer to remove the Stale tag!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [fix](regression) fix MissingPropertyException in plugins_create_table_nested_type [doris]
Posted by "Thearas (via GitHub)" <gi...@apache.org>.
Thearas commented on PR #62454:
URL: https://github.com/apache/doris/pull/62454#issuecomment-4236682500
Thank you for your contribution to Apache Doris.
Don't know what should be done next? See [How to process your PR](https://cwiki.apache.org/confluence/display/DORIS/How+to+process+your+PR).
Please clearly describe your PR:
1. What problem was fixed (it's best to include specific error reporting information). How it was fixed.
2. Which behaviors were modified. What was the previous behavior, what is it now, why was it modified, and what possible impacts might there be.
3. What features were added. Why was this function added?
4. Which code was refactored and why was this part of the code refactored?
5. Which functions were optimized and what is the difference before and after the optimization?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org