You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Feature] Scale IndexedSplit size estimates and avoid over-splitting Ray search results #11410
I searched in the issues and found nothing similar.
Motivation
When reading global-index search results via query.to_ray():
RayDatasource uses the full underlying file_size for IndexedSplit, inflating size estimates and skewing greedy split balancing when splits select very different row counts.
Leaving override_num_blocks=None triggers Ray Data's default parallelism floor (SplitBlocks), fanning a small Top-K lookup out into single-row blocks and adding unnecessary downstream MapBatches / Sort overhead.
Solution
Compute pre-deletion on-disk row coverage in DataSplit.row_count_before_deletions(files) (deduplicating overlapping Data Evolution column files).
Scale IndexedSplit byte estimates in RayDatasource by selected_rows / row_count_before_deletions.
Bound default override_num_blocks in pypaimon/ray/search_result.py using min(len(splits), concurrency) and DataContext.get_current().target_max_block_size, and clamp read concurrency to min(concurrency, override_num_blocks).
Activity