JingsongLi commented on code in PR #1545:
URL: https://github.com/apache/paimon-rust/pull/1545#discussion_r4690239451


##########
crates/paimon/src/table/table_read.rs:
##########
@@ -617,6 +617,11 @@ impl<'a> PaimonTableRead<'a> {
         } else {
             parallelism
         };
+        let splits = if options.data_evolution_enabled() && !self.update_read {
+            
super::read_execution::independent_file_splits(splits.into_owned(), parallelism)

Review Comment:
   **[P2] Preserve row order within each supplied split**
   
   `TableRead::with_ordered` promises that rows inside a supplied split retain 
their reader order in both modes. With 
`with_parallelism(2).with_ordered(false)`, this converts files from one 
supplied split into independent streams that emit whichever batch is ready 
first. I committed two Parquet files to one Data Evolution partition, confirmed 
the plan supplied one split, and delayed the first file through 
`FileBlockCache`. The same scan returned `[1, 2, 3, 4, 5, 6]` on `main` and 
`[4, 5, 6, 1, 2, 3]` on this head. Please retain the original split as the unit 
of output ordering while reading its file groups concurrently, and cover the 
default unordered mode in the integration 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