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

   ### Purpose
   Fix `sys.remove_unexisting_files` on newly created empty tables in Spark.
   
   Previously, `SparkRemoveUnexistingFiles` called `parallelize` with 
`realParallelism = 0` when `table.newScan().listPartitions()` returned an empty 
list, which caused Spark to fail with `IllegalArgumentException: Positive 
number of partitions required`. This change short-circuits the empty-table case 
and returns an empty result instead of launching a Spark job.
   
   
   ### Tests
   Added `RemoveUnexistingFilesProcedureTest: Paimon procedure: remove 
unexisting files on empty table`
   


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