slachiewicz opened a new issue, #2755:
URL: https://github.com/apache/iceberg-go/issues/2755

   Follow-up from #2487, which fills identity partition columns missing from 
data files and folds filters against each file's partition values. That work is 
repeated more often than it needs to be:
   
   - `convertPartitionConstants` runs in `projectToRequestedSchema` for every 
record batch and allocates a new map each time.
   - `foldIdentityPartitionConstants` runs in `recordsFromTask` and 
`producePosDeletesFromTask` for the row and row-group filters, and again in 
`processRecordsWithPlans` for the row-group filter.
   - The check that skips the cached filter plans when a filter folded is 
written out in both `recordsFromTask` and `producePosDeletesFromTask`.
   
   Converting the constants and folding the filters once per file task, and 
keeping the cache-skip decision in one helper, would remove the per-batch 
allocation and the duplicated guard.
   


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