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

   ## Problem
   
   `SplitUtils` narrows a split to `DataSplit` or `FormatDataSplit` and falls 
through to `0`. A `QueryAuthSplit` is neither, so on a table carrying query 
authorization every size and file count reads as zero. `PaimonStatistics` 
reports `sizeInBytes = 0`, which tells the optimizer the table is empty.
   
   `paimon-core` and `paimon-flink` already peel the wrapper through 
`Splits.underlying`; `paimon-spark` never did.
   
   ## Change
   
   `SplitUtils` reads its statistics off the underlying split. Only metadata is 
read there, so the splits handed to readers keep their wrapper and the row 
filter and column masks still apply.
   


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