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

   ### Purpose
   
   `sys.max_pt` only accepted `SparkTable`, so calling it on a format table 
failed with an `AssertionError`. Catalog-managed format table partitions also 
report a zero file count both before statistics are reported and when a 
partition is truly empty, so the existing `fileCount > 0` filter cannot tell 
them apart.
   
   Accept every Paimon `BaseTable`, and for format tables check partition 
candidates from largest to smallest with an exact partition-filtered scan, 
returning the first one that produces data. `FileStoreTable` keeps the 
metadata-only path. Null top-level partition values are ignored.
   
   ### Tests
   
   New cases in `PaimonFormatTableTest` cover catalog-managed data, empty 
registered partitions, empty filesystem directories, null partitions, and 
unpartitioned tables.
   


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