Repository navigation
DESIGN: a plan for keyed partitions in flows (Partition and Reduce) - #175
Merged
Merged
Conversation
A docs-only plan for a group-by inside dista.flow: a Partition operator (a TaskMany per input, on its batches, making one piece per partition) and a Reduce (a TaskWith per partition, on that piece from every input), joined by a barrier. It settles the types and checks, the executor's two chains, memory and spilling, losses before and after the barrier, the hash, groups and sizing, and lists five PRs ending with bench/shuffle as a flow on sai beside the hand-written version and Ray. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017TycsyUqdnuDeZrYc3z6wV
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Docs only: the plan for a keyed-partition operator in
dista.flow, the base for group-by (and later joins and sort), as a new section of DESIGN.md after "Flows". No implementation.What it settles:
Partition[T: ManyLike, parts](aTaskManyper input, on all of its batches, returningpartspieces; the merge before splitting is the combiner) followed byReduce[T: WithLike](aTaskWith[Int, Piece, R]per partition on that piece from every input). The bench's group-by written as a flow is in the section.partition_of, skew, empty partitions, exact checks; groups and a compile-timeparts.saibeside the hand-written version and Ray, with proposed bars.Two claims were compiled on Mojo 1.3.0.dev2026112605: the
Seq[...]name check between operators works (and fails to compile on a mismatch), andManyLike.Part's currentMovablebound doesn't satisfyOpLike.Out.🤖 Generated with Claude Code
https://claude.ai/code/session_017TycsyUqdnuDeZrYc3z6wV