Skip to content

[python][ray] Fix Ray 2.60 shuffle v2 compatibility - #10987

Closed
tzphh wants to merge 1 commit into
apache:masterfrom
tzphh:codex/ray-shuffle-v2-compat
Closed

tzphh wants to merge 1 commit into
apache:masterfrom
tzphh:codex/ray-shuffle-v2-compat

Conversation

@tzphh

@tzphh tzphh commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

Purpose

Ray 2.60.0 defaults to shuffle_v2. Its sorted reduce fails when real update blocks and the sentinel have different Arrow schemas, or when a map with no batches emits a zero-column, zero-row shard. Align routed update blocks with the sentinel schema before grouping.

For the affected Ray 2.60.0 groupings, register a callback on a copy of the dataset context. It removes schema-less empty shards before the sorted reducer while keeping typed empty shards. Row-ID reads stay lazy and continue to use the configured shuffle strategy.

Tests

  • Ray 2.60.0 with default shuffle_v2 passed all six previously failing tests and 24 related tests covering lazy reads, grouped writes, and routing.
  • Ray 2.60.0 with hash_shuffle passed the same six tests.

@tzphh tzphh closed this Nov 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant