sungwy opened a new issue, #3983:
URL: https://github.com/apache/iceberg-python/issues/3983

   `_read_deletes` builds its result with a dict comprehension that filters the 
whole table once per distinct `file_path`:
   
   ```python
   {
       file.as_py(): table.filter(pc.field("file_path") == file).column("pos")
       for file in table.column("file_path").chunks[0].dictionary
   }
   ```
   
   Cost is therefore O(rows x distinct paths). A delete file with many distinct 
paths makes this quadratic. The ORC branch below has the same shape via 
`unique()`.
   
   
   ---
   Issue investigation generated via claude, reviewed by Sung, Kevin, Fokko.


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