thswlsqls opened a new pull request, #8517: URL: https://github.com/apache/paimon/pull/8517
### Purpose fix #8513 - `RowType`, `MapType` and `MultisetType` `defaultSize()` summed child int sizes without an overflow guard, wrapping to a negative value when a child size nears `Integer.MAX_VALUE`. - Saturate at `Integer.MAX_VALUE` via the existing `MathUtils.addSafely(int,int)` (no new API or dependency), matching `VectorType.defaultSize()` fixed in PR #8360, which left these sibling composite types unguarded. ### Tests - Added `DefaultSizeOverflowTest` covering normal sums (ROW/MAP/MULTISET) and overflow saturation for a large `VECTOR` child in each composite type. - `mvn -pl paimon-api -DfailIfNoTests=false clean install` — passed. -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
