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

   ### Purpose
   
   When a data evolution scan applies row ranges to a `QueryAuthSplit`, 
`wrapToIndexSplits` casts the authorization wrapper to `DataSplit` and fails 
with `ClassCastException`.
   
   Convert the wrapped split to `IndexedSplit` and retain the outer 
`QueryAuthSplit` and its authorization result, so row filters and column 
masking remain available to the reader. Reuse existing indexed splits without 
changing their row ranges or scores.
   
   ### Tests
   
   Added regression coverage for authorization results (including null), 
intersected row ranges, scores, and existing indexed splits. The new 
authorization test reproduces the `ClassCastException` before the fix.
   
   All 15 tests passed with the standard build checks enabled:
   
   ```sh
   mvn -pl paimon-core -am -DfailIfNoTests=false -DwildcardSuites=none \
     -Dtest=DataEvolutionBatchScanTest,QueryAuthSplitTest,SplitSerializerTest 
test
   ```
   


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