Anirban-Chand commented on issue #13570:
URL: https://github.com/apache/gluten/issues/13570#issuecomment-6949227926

   Thanks for the detailed report and for isolating this so carefully (native 
Iceberg scan vs `batchscan=false` vs plain Parquet on the same files). I'm 
looking into this and haven't reproduced it yet, so the points below are 
questions, not conclusions.
   
   The loss only shows up on the Iceberg split path, and the *same* groups of 
rows go missing across runs while *which* groups go missing varies. That looks 
more like a timing-dependent skip of a fixed unit of data (a page, batch or row 
range) than a wrong filter result. A few things would help narrow it down:
   
   1. **Filters:** Does it still reproduce with predicates removed one at a 
time, down to a plain `count(*)` over the partition? That separates a read 
problem from filter pushdown / row-group / page skipping.
   2. **Lost rows:** Are the missing rows always in the same file? Do they line 
up with row-group or page boundaries, and does `count(DISTINCT id)` drop by the 
same amount as `n`? Do you ever see duplicated rows?
   3. **Concurrency:** Does it reproduce with `spark.executor.cores=1` or 
`local[1]` on just the problematic file? You ruled out `IOThreads` and 
`SplitPreloadPerDriver`, but not task-level or driver parallelism.
   4. **Partitioning:** If those 15 files are registered in an unpartitioned 
Iceberg table (e.g. via `add_files`), is the loss still there?
   5. **File metadata:** Could you share the Parquet footer of the affected 
file (writer, codec, encodings, data page version, column/offset index 
presence) plus the table's `format-version` and any schema evolution?
   6. **7,083-row gap:** In which direction does the plain Parquet count differ 
from Iceberg, and does your 15-file list exactly match the files Iceberg plans 
for this query?
   
   I'll try a synthetic reproduction once I have the file/table details.


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to