SteNicholas commented on PR #1469:
URL: https://github.com/apache/paimon-rust/pull/1469#issuecomment-7080033811

   @JingsongLi, I reran the four regression tests for the cases you reported 
after rebasing `05bb9b71` onto `main`. All four passed on the current head. 
[Commit 
`51374832`](https://github.com/apache/paimon-rust/pull/1469/commits/51374832d90b0dbf682135888c97dbc037054615)
   
   - With `id >= 0` and only `_ROW_ID = 102117` requested, statistics rule out 
no rows, so the reader keeps the cached `OffsetIndex`. Pushdown on and off both 
return `(id=2117, _ROW_ID=102117)` and read the same number of column-data 
bytes, less than a full chunk. [Sparse-read 
regression](https://github.com/SteNicholas/paimon-rust/blob/51374832d90b0dbf682135888c97dbc037054615/crates/paimon/src/table/data_evolution_reader/candidate_ranges_tests.rs#L433-L455)
   - When statistics do produce candidates, projected page boundaries still 
need independent row counts, even if the caller already selected exactly those 
rows. Without those counts the reader decodes whole chunks. Your `rating = 36` 
case returns `(id=36, _ROW_ID=100036)`. [Projected-row 
regression](https://github.com/SteNicholas/paimon-rust/blob/51374832d90b0dbf682135888c97dbc037054615/crates/paimon/src/table/data_evolution_reader/candidate_ranges_tests.rs#L923-L1005)
   - Predicate-free sparse reads request only the `OffsetIndex`. When both 
indexes are optional and the `ColumnIndex` fails to decode, the reader retries 
the offsets using metadata bytes it already fetched. [Index-loading 
regression](https://github.com/SteNicholas/paimon-rust/blob/51374832d90b0dbf682135888c97dbc037054615/crates/paimon/src/arrow/format/parquet.rs#L7121-L7204)
   - Indexed data pages must be contiguous and the final page must end at the 
chunk boundary. With the last page recorded one byte short, the reader falls 
back to the full chunk and `rating = 4095` still returns the last row. 
[Page-span 
regression](https://github.com/SteNicholas/paimon-rust/blob/51374832d90b0dbf682135888c97dbc037054615/crates/paimon/src/table/data_evolution_reader/candidate_ranges_tests.rs#L1008-L1081)
   


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