thswlsqls opened a new pull request, #8812:
URL: https://github.com/apache/paimon/pull/8812

   
   ### Purpose
   
   fix #8811
   
   - `VectorType.isPrunedFrom` recursed into the element type but ignored 
`length`, so `VECTOR<FLOAT, 3>` was reported as pruned from `VECTOR<FLOAT, 5>`.
   - Add the missing `length == vectorType.length` term, mirroring 
`equalsIgnoreFieldId` in the same class — `equals` and `hashCode` already 
include `length`.
   
   ### Tests
   
   - Added `VectorTypeTest#testIsPrunedFromRejectsDifferentLength` (fails 
before the fix) and `#testIsPrunedFromAcceptsSameElementTypeAndLength`.
   - `mvn -pl paimon-api clean install` — BUILD SUCCESS on JDK 11, 105 tests 
passed (checkstyle, spotless, rat included).
   
   
   


-- 
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]

Reply via email to