AnirudhSriram opened a new pull request, #2705: URL: https://github.com/apache/iceberg-go/pull/2705
Closes #2703 **Trade-off first.** This makes equality delete memory linear in the delete keys, but a row now takes one lookup per delete file in its group instead of one. Please say if you'd rather keep the single lookup. I'm happy to follow up with a structure that keeps one lookup per row without per-group copies. | | main | this PR | |---|---|---| | Per-task sets, 100 delete files × 10k keys, task i sees files i..99 | 50.5M keys, ~2 GiB heap | ~30 KiB heap | | Filter 64k int64 rows, 2 delete files × 1000 keys | 0.38 ms | 0.69 ms | | Same, 10 delete files | 0.54 ms | 3.18 ms | | Same, 50 delete files | 0.97 ms | 15.3 ms | The filter numbers are for the filter only. They don't include main's per-group build of the merged map and its typed index, which this PR removes. **Change.** `mergeEqualityDeleteSets` keeps references to the files' sets (largest first) instead of copying their keys. `processEqualityDeletesColumnarForFile` and `equalityRowsMatched` expand a combined set into its files' sets, so each file's own keys and typed index (`singleInt64Set` and others) are used and shared across tasks. **Tests.** - New: per-task sets for 20 groups use the files' own sets; a combined set of three int64 delete files deletes every key through the int64 fast path. - Updated existing tests that read `keys` of a merged set. - `make lint` and `go test ./...` pass. Robin Tang wrote the first version of this change on v0.7.0 and is the commit author. I ported it to main, where the typed indexes needed the expansion above. 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- 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]
